It shall be unlawful for the owner or any person in occupancy or control of a building or structure to fail to maintain such building or structure in a safe condition or to maintain in good working order any of the safeguards prescribed in this article.