A city has the authority to require a building owner to shore up a structure so that it is safe.
Maybe instead of issuing emergency tear down orders, they should issue emergency shore-up orders.
Well just because the city orders something doesn't mean its actually going to happen. Much easier to ensure a negative than demand a positive.