(a) Prohibition.--An election officer may not do any of the following:
(1) Knowingly refuse the vote of a registered elector.
(2) Knowingly accept the vote of an individual not registered under this part. This paragraph does not apply to a person in actual military service or an individual having an order of court.
(3) Knowingly receive a vote from a person falsely claiming to be a registered elector.
(b) Penalty.--A person who violates subsection (a) commits a misdemeanor of the first degree and shall, upon conviction, be sentenced to pay a fine of not more than $10,000 or to imprisonment for not more than five years, or both.