Any owner, general agent, contractor or tenant of any building or premises or part thereof, in which the premises or part thereof is in violation of any provision of this chapter has been committed or shall exist, or any other person who commits, takes part or assists in such violation or who maintains any building or premises in which any such violation shall exist; or any person who constructs, alters, restores, repairs, reconstructs, converts or maintains, or permits the construction, alteration, restoration, conversion or maintenance of, any building or structure, or who uses, maintains or permits the use or maintenance of any land, building or structures, in violation of any provisions of this chapter, shall, upon conviction, be subject to a fine not to exceed $1,250 or imprisonment for a term not to exceed 90 days, or both, at the discretion of the court.