The owner or general agent of a building or premises or land where a violation of any provisions of this chapter has been committed or shall exist; or the lessee or tenant of an entire building or entire premises or land where such violation has been committed or shall exist; or the owner, general agent, lessee or tenant of any part of the building or premises or land in which such violation has been committed or shall exist; or the general agent or builder or any other person who commits, takes part or assists in any such violation or who maintains any building or premises or land, or any part thereof, in which any violation shall exist shall be guilty of an offense punishable by 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 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.