Any person making or causing to be made any excavation within
five feet of the line of any street shall erect and maintain at all
times substantial barriers, at least four feet in height, between
said street and the excavation and between sunset and sunrise keep
a lighted lantern or lanterns placed upon said barriers so as to properly
warn all persons of such excavation.