Authorities are warning areas in both states are at risk of coastal erosion and flooding due to heavy rain.