Nothing in this chapter shall prevent the strengthening or restoring to a safe condition of any part of any building or structure declared unsafe by the building official, or from complying with his lawful requirements.