Any person voting, in any primary election, any ticket of a party other than that of which he is registered as a member, and any election officer receiving the vote of any such person, knowing, or having reason to believe, that such voter is not a member of the party the ticket of which he is voting, shall, at the primary election to be held to nominate candidates for the same office, vote at such primary election; shall in each instance be guilty of a misdemeanor, and, on conviction thereof, shall be fined not more than one thousand dollars, or be confined in the county jail for not more than one year, or both, in the discretion of the court.
W. Va. Code § 3-9-18