Any fence or other structure in the nature of a fence, unnecessarily exceeding 6 feet in height, maliciously kept and maintained for the purpose of annoying the owners or occupants of adjoining property, shall be deemed a private nuisance.