A person commits a Class A misdemeanor if such person assists any person in voting except as permitted by this title, or if such person knowingly casts any vote or consents to the casting of any vote contrary to the desire of the voter while otherwise lawfully assisting the voter in casting such person's vote or if, being an election official or other person otherwise lawfully assisting a voter, such person influences or attempts to influence the voter in casting such person's vote.