Any owner, lessee, contractor, agent or other person who uses or maintains, or causes to be used or maintained, any building or premises or part thereof in the Borough for any purposes other than the uses permitted therefor in this chapter, or who erects, enlarges or alters, or causes to be erected, enlarged or altered, any building or any part thereof in the Borough, except in conformity with the provisions of this chapter, or who otherwise violates or causes to be violated any provision of this chapter shall, upon conviction, be subject to penalties as follows: a fine of not less than $100 nor more than $2,000 or imprisonment for a period not exceeding 30 days, or both.