No person shall maliciously erect or maintain in the city, for the purpose of annoying the owners or occupants of adjoining property, any fence or other structure in the nature of a fence unnecessarily, exceeding six feet in height. (Prior code § 26.01.020)