If the local authority in question is of the opinion that -
(a) any building is dilapidated or in a state of disrepair or shows signs thereof;
(b) any building or the land on which a building was or is being or is to be erected or any earthwork is
dangerous or is showing signs of becoming dangerous to life or property, it may by notice in writing, served by post or delivered, order the owner of such building, land or earthwork, within the period specified in such notice to demolish such building or to alter or secure it in such manner that it will no longer be dilapidated or in a state of disrepair or show signs thereof or be dangerous or show signs of becoming dangerous to life or property or to alter or secure such land or earthwork in such manner that it will no longer be dangerous or show signs of becoming dangerous to life or property: Provided that if such local authority is of the opinion that the condition of any building, land or earthwork is such that steps should forthwith be taken to protect
life or property, it may take such steps without serving or delivering such notice on or to the owner of such building, land or earthwork and may recover the costs of such steps from such owner.