Any owner, lessee, occupant, builder or other person who shall construct, alter, repair, convert, maintain or use any building or structure in violation of any provision shall, upon conviction, be punishable for each such offense by imprisonment not to exceed 90 days or by a fine not to exceed $2,000, or by both such fine and imprisonment, and for such purpose, every period of 24 hours during which such violation continues shall be deemed a separate offense.