What can a person threatened by harm from a building do in order to mitigate the risk? 
The person can require the owner of the building to take necessary measures to avert the risk. If the owner fails to do so, the judge may allow the person to take those measures at the expense of the owner.