Any person knowingly or wilfully registering upon the voters' book of said city without being entitled to do so, or knowingly or wilfully giving any false information for the purpose of becoming registered or having his or her name placed on the voters' list for any election, or voting at any election when not legally entitled to do so, shall be guilty of a misdemeanor, and upon conviction, shall be punished as provided by section 1065 of the Penal Code of Georgia of 1910.