No officer or employee of the city except the mayor and other councilmen, may attempt to influence the nomination, election or defeat of any candidate for mayor or councilman except by the proper exercise of his right to vote. Any person who violates this provision, shall be punished, upon conviction thereof, by a fine not exceeding twenty dollars inclusive of costs. Such violation shall constitute cause for removal from office or employment.