Electrical systems need to be designed and installed correctly to ensure wiring is not overloaded.
The correct circuit breakers ensure the power disconnects in the event of a fault/electrocution.