Any person who, at any municipal election, fraudulently votes or offers to vote in any precinct in which he or she does not reside shall be punished by a fine of not more than five thousand dollars or by imprisonment in the county jail for not more than eighteen months, or by both such fine and imprisonment.