One way to prevent a surge is to:

To reduce the risk of surge in a liquid tank, you should make sure to brake well in advance of stops. Increase your following distance to reduce the need for sudden stops.
DMV Writen Test