You are going to have to explain to me why it is so very dangerous if you have the MAIN switched OFF.
It is illegal to wire it that way here without an automatic transfer switch. The city or power company will call the police and shut you down immediately. They won't be nice about it. If you fail to comply they will arrest you.