Every person who shall violate or assist in the violation of any of the provisions of the act shall be deemed guilty of a misdemeanor, punishable by imprisonment for ten days for each and every day that the violation continues, or by a fine of not less than $10 nor more than $100; if the violation be wilful, by a fine of $250, and in every case $10 for each day after the first that the violation shall continue, or by both such fine and imprisonment, in the discretion of the court. The penalty for the obstruction of fire escapes by an occupant of a tenement house shall be a fine of $10, which the nearest police magistrate shall have jurisdiction to impose.