Just don't do that with the mains still connected.
It looks like the case isn't properly closed, so the internals need to be checked and wiring rearranged if required to ensure it can be closed properly to keep insects and other debris out. They're [broken link removed] enough to replace, so if the internals are corroded, probably best be on the safe side.