(a) Any person to whom a building or street occupation permit is issued shall erect and maintain such substantial and suitable fences, railings or barricades to guard all excavations, embankments or obstructions along the street, parkway or sidewalk abutting upon or adjacent to such lot or tract as the director of public works deems necessary for the protection of the lives and limbs of the public. He or she shall place and maintain proper and sufficient red lights to protect the public using such street or sidewalk from 7:00 p.m. to 5:00 a.m. throughout the months of April to September, inclusive, and from 5:00 p.m. to 7:00 a.m. throughout the months of October to March, inclusive. Such lights shall be placed at each end of every such obstruction or excavation and at intervals of at least 75 feet along the same.
(b) Any person who maliciously or wantonly, and without legal cause, removes, extinguishes, diminishes or disturbs such lights or removes or disturbs such barricades, shall be deemed guilty of a misdemeanor.