Any person who votes or attempts to vote at any primary or election, knowing that he does not possess all the qualifications of an elector at such primary or election as required by law, or who votes or attempts to vote at any primary in violation of O.C.G.A. ยง 21-3-136 shall be guilty of a misdemeanor.