Any person who falsely personates any registered elector and votes under the name of such elector 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.