Shut off the affected circuit at the panel if you can do it safely
If you know which breaker controls the problem area and you can reach the panel without touching anything wet or damaged, switch that breaker to OFF. Leave it off. Don't try to reset it.