Any person who commits fraud or attempts to commit fraud, and any person who aids or abets fraud or attempts to aid or abet fraud, in connection with any vote cast, to be cast, or attempted to be cast, is guilty of a felony, punishable by imprisonment for 16 months or two or three years.