Whoever gives or promises to give, or offers any money or valuable thing, to any person with the intent to induce him to vote for or refrain from voting for any candidate at any election, shall be fined not more than $500 or imprisoned not more than one year, or both.