Any person or corporation, including but not limited to the owner, lessee, architect and/or builder or agent or employee of any of them, who violates or is accessory to the violation of any provision of this chapter or any regulation made under the authority conferred by this chapter, or who shall erect, construct, reconstruct, alter, enlarge, convert or move any building or structure without a building permit or in violation of any statement or plans submitted and approved under the provisions of this chapter, or who shall use any building, structure or land in violation of this chapter or any regulation made under the authority conferred by this chapter or in violation of the provisions of any building permit or certificate of occupancy or without a building permit or certificate of occupancy if one is required by this chapter, shall be liable to a fine not exceeding $350 or imprisonment for a period not to exceed six months, or both, for conviction of a first offense; for conviction of a second offense, both of which were committed within a period of five years, punishable by a fine of not less than $350 nor more than $700 or imprisonment for a period not to exceed six months, or both; and upon conviction for a third or subsequent offense all of which were committed within a period of five years, punishable by a fine not less than $700 nor more than $1,000 or imprisonment for a period not to exceed six months, or both. However, for the purpose of conferring jurisdiction upon courts and judicial officers generally, violations of this chapter shall be deemed misdemeanors, and for such purpose only, all provisions of law relating to misdemeanors shall apply to such violations. Each week's continued violation shall constitute a separate additional violation.