No judge of an election or inspector, or any custodian or other public official authorized to take part in the holding of an election or in preparing for an election, shall, with intent to cause or permit any voting machine to fail to register correctly all votes cast thereon; or tamper with or disarrange such machine in any way or any part or appliance thereof, or cause or consent to said machine being used for voting at any election with knowledge of the fact that the same is not in order, or not perfectly set and adjusted so that it will correctly register all votes cast thereon; or, with the purpose of defrauding or deceiving any voter or of causing it to be doubtful for what ticket or candidate or candidates or proposition any vote is cast, or of causing it to appear on said machine that the votes cast for one ticket, candidate or proposition, were cast for another ticket, candidate or proposition, remove, change or mutilate any ballot label on said machine or any part thereof; or do any other thing intended to interfere with the validity or accuracy of the election, and the results thereof, or fraudulently cause an incorrect return of the election.
10 ILCS 5/24-20