They have a fatal weakness
On many boats, the filler cap for the fuel tank is on the sidedeck, almost in the scuppers – perfect for allowing water into the diesel tank if the seal fails. So check the seal regularly – replacing if necessary. Cheap plastic caps have a coarse thread and can be hard to correctly tighten – consider investing in a quality one with a fine thread.