It is a Class C misdemeanor for any person, directly or indirectly, to make a bet or wager with a voter, depending upon the result of any primary or final election provided by law, with the intent thereby to procure the challenge of such voter, or to prevent the voter from voting at such election.