I strongly recommend you use JOSM when editing coastlines. It has different validators to automatically check for errors.

Coastlines are very sensitive data and they should be correctly ordered and connected. Without ambiguities.