(2)If immediate action is necessary, the Commissioner or Executive Authority shall himself, before giving such notice or before the period of such notice expires, fence off, take down, secure or repair such structure or fence off a part of any road or take such other temporary measures as he may think fit to prevent danger, and the cost of doing so shall be recoverable from the owner or occupier in the manner hereinafter provided.