Whoever, being an election official, knowingly refuses the vote of a duly registered and qualified elector, or knowingly accepts the vote of a person not registered in accordance with the provisions of this title (except that of an armed forces absentee as provided in chapter 25 of this title, or of a person having an order of the district court), or knowingly receives a vote from a person falsely claiming to be a registered voter, shall be fined not more than $500 or imprisoned not more than one year, or both.