If any stakeholder, or person with whom any money or thing, laid as a wager or bet on the result of any election, or on the election or defeat of any candidate or person voted for thereat, shall be deposited, shall at any time either before or after such bet shall have been decided, pay over or deliver to either or both of the persons betting the same, or to any other person by the order or for the use of them, or either of them, the money or thing so illegally betted, every such stakeholder or depository shall forfeit and pay to any person who will sue for the same, double the amount of such wager or bet or double the value of the thing betted.
Either of the persons betting shall be competent witnesses against the stakeholder.