(a) Legal action. In case any building or structure is erected, constructed, reconstructed, altered, repaired, converted or maintained or any building, structure or land is used in violation of this chapter, the building official or any other appropriate authority or any adjacent or neighboring property owner who would be damaged by such violation, in addition to other remedies, may institute an injunction, mandamus or other appropriate action or proceeding to prevent the violation in the case of such building, structure or land. (b) Penalty. Any person violating any provision of this chapter shall be guilty upon conviction and shall be punished as provided in section 1-13.