The owner or agent of any building or premises where a violation of any provision of these regulations has been committed or exists, or the lessee or tenant of an entire building or entire premises where such violation has been committed or exists, or the agent, architect, builder, contractor or any other person who commits, takes part or assists in any such violation who maintains any building or premises in which any such violation exists, shall be fined not less than $10 nor more than $100 for each day that such violation continues; but, if the offense is willful, the person convicted thereof shall be fined not less than $100 nor more than $250 for each day that such violation continues or imprisoned not more than 10 days for each day such violation continues, or both.