(a) A person commits an offense if, in retaliation against a voter who has voted for or against a candidate or measure or a voter who has refused to reveal how the voter voted, the person knowingly:
(1) harms or threatens to harm the voter by an unlawful act; or
(2) with respect to a voter over whom the person has authority in the scope of employment, subjects or threatens to subject the voter to a loss or reduction of wages or another benefit of employment.
(b) An offense under this section is a felony of the third degree.