When I lived on the gulf coast, 2 options was to either have removable lights, or put them on the boat guides on the trailer, that raised them above the water level when launching or retrieving the boat. Sealed lights always seemed to develop a crack and start leaking
Even then fighting the salt water corrosion was a constant battle.
Used a lot of dilectric grease on the bulbs, connections, to HELP keep them usable or if nothing else where you could replace the bulbs, fuses etc. without replacing the whole assembly.