Any person who falsely personates any elector and votes at any election provided by law 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.