Whoever, being an election official, willfully fails to perform any election duty or knowingly does any unauthorized act with the intent to affect the election or its results, shall be fined not more than $1,000 or imprisoned not more than three years, or both.