Any judge, inspector or clerk of election, or other person, who, before any ballot is deposited in the ballot box as provided by this act, shall unfold, open or pry into any such ballot, with the intent to discover the manner in which the same has been marked, shall be guilty of a misdemeanor, and, upon conviction thereof, shall be sentenced to pay a fine not exceeding five hundred ($500) dollars, or to undergo an imprisonment of not more than one (1) year, or both, in the discretion of the court.
25 P.S.§ 3526