If you follow the bog standard construction methods, there are only a handful of dangerous or bad things you can do. Like pulling wire through sharp metal conduit holes and not using grommets. Or sticking your furnace up tight against bare wood boards or paneling. Or being completely clueless and ignoring the instructions printed on your insulation and creating a plastic trap for moisture to accumulate. Using brittle screws instead of nails for framing. And almost all of these things would be caught by an inspector immediately if you even tried.
What would help is restricting foreign speculation and appropriately taxing corporate ownership of homes. A good example is what's going on in Canada [1] & Vancouver [2].
It's not like other countries haven't made meaningful attempts to address their population from buying homes. It's just that the US doesn't want to do it because the elite who own & constitute the political spectrum think it's bad for their bottom line and don't care if it's destabilizing the rest of society.
[1] https://www.cnn.com/2023/01/01/business/canada-bans-home-pur...
[2] https://vancouver.ca/home-property-development/empty-homes-t...