(1)If any wall or building, or anything affixed thereto, is deemed by the Municipal Commissioner or the Executive Officer to be in a ruinous state, or is likely to fall, or to be in any way dangerous, he shall forthwith cause a notice, in writing, to be served on the owner and to be put on some conspicuous part of the wall or building or served on the occupier, if any, of the building requiring such owner or occupier forthwith to demolish, repair, or secure such wall, building or thing, as the case may require.