Sec. 493c. Any person who shall hereafter dig or cause to be dug an excavation or a partially constructed basement for any building or structure, and who shall fail to cover or safely fence the same within a period of 90 days after such excavation has been commenced shall be deemed guilty of a misdemeanor.