Re: Prevent current in water
If this system is earthed then a Residual Current Device (RCD) will trip as soon as there is a current leakage from Active-Neutral loop --> to Earth .. so, the sequence of Active - Neutral doesn't matter ..
If you can isolate this system from Earth then you can implement so called "Ground Isolation Monitor" concept, which basically is an 1:1 isolation transformer (Active - Neutral sequence not relevant), adding a very low current DC voltage, say 100V, and a circuit that senses this DC voltage ..
This option allows you to "monitor" (measure) the impedance (resistamce) between the isolated circuit and EARTH, and if a fault occures switch the voltage OFF within ≈25ms (with a solid state relay) ..
Regards,
IanP