How can you tell if a building is structurally safe and durable?

I saw this video of 50 construction workers got killed in a collapse building in my country. Its just so sad that there are also kids died in there.
How can you tell if a building is structurally safe and durable?
Post Opinion