(a) A person commits an offense if the person knowingly votes or attempts to vote in a primary election or participates or attempts to participate in a convention of a party after having voted in a primary election or participated in a convention of another party during the same voting year.
(b) Except as provided by Subsections (c) and (d), an offense under this section is a Class C misdemeanor.
(c) An offense under this section is a felony of the second degree if the conduct constituting an offense under Subsection (a) consists of knowingly voting in a primary election after having voted in a primary election of another party during the same voting year.
(d) An offense under this section is a state jail felony if the conduct constituting an offense under Subsection (a) consists of knowingly attempting to vote in a primary election after having voted in a primary election of another party during the same voting year.