The suitability of a site has to be assessed by doing site investigations of the surface and subsurface. Methods such as geological, geophysical are used.
Depending on the site classification, some types of sites are inherently bad for construction... care must be taken to ensure that proper design parameters are met