Not in any way demeaning them, but what buildings exactly has SpaceX built at Boca Chica and KSC/CCAFS? Not that either site is reclaimed land in a polder in a subsiding city famous for its increasing rate of floods... but regardless, what buildings exactly have they built even ignoring that? They've only installed a few pieces of outdoor hardware at Boca Chica, and they retrofitted the pads (but not buildings) at 39A and SLC-40. The sites were built by the US government in the 1960s.
Again, don't interpret this as "Tesla / SpaceX don't know how to build buildings". I don't mean this in any way, shape, or form. I'm only bringing up that there are risk factors beyond their control at the Shanghai site. E.g. if there's a levee overtopping, that's not a condemnation of Tesla's design and construction work - but having several meters of water flow into their site certainly would affect them greatly.
Having helped with both flood evacuations and flood cleanups, I have a healthy level of respect for the power of water.