How prevent water drainage from neighbor's yard?
Can you pass the buck elsewhere?

Water needs to go to a lower place - storm drain or elsewhere. Typically you'd connect low spots with a drainage conduit (french drain [buried channel of gravel/pebbles], or plastic drainage pipes) and connect that to an even lower area like a storm drain or sewer. If you can't connect low spots, you can protect them by placing drainage conduits across the path water would likely run.

You might also use pumps to help the process along if gravity is inadequate.

You could also install a dry well, which is basically an underground tank for the water to collect. It's perforated to eventually drain, so permeability of surrounding soil needs consideration.

I know the law says water on a property should be contained, but what if that's the natural state of the land? E.g. If a creek flows between properties, very little can be done to stop it short of redirecting the creek elsewhere.