Whoever, being an election officer or other person, administers or causes to be administered to any legal voter any oath or affirmation not authorized by the Constitution or laws of this State for that purpose as a prerequisite or condition of voting at any election, except when such oath or affirmation is administered in order to satisfy such election officer or other person that such vote is a legal vote according to the Constitution and laws of this State, shall for each such offense be fined not less than $500 nor more than $1,000 and imprisoned 10 days.