Any election officer or other person who shall unlawfully open or who shall tamper with or injure or attempt to injure any voting machine to be used or being used at any primary or election, or who shall prevent or attempt to prevent the correct operation of such machine, or any unauthorized person who shall make or have in his possession a key to a voting machine to be used or being used in any primary or election, shall be guilty of a misdemeanor of the second degree, and, upon conviction thereof, shall be sentenced to pay a fine not exceeding five thousand ($5,000) dollars, or to undergo an imprisonment of not more than two (2) years, or both, in the discretion of the court.
25 P.S.§ 3518