It is not very difficult to protect against floods, if you have the right stuff. In the past they had to use sandbags. Now there are modern mobile flood barriers that can be quickly deployed at risk of flooding, to then be removed again just as fast. Barriers which also can be reused.