If the profit of miners is not as high as the price of electricity. Miners will leave, then it will become more profitable for the miners that do mine, balancing it out. Simple economics. But if electricity costs so much that noone will want to mine, then, we are in quite a bit of trouble.