Right now one such country is El Salvador. Already they've booked a big profit out of bitcoin adoption. Now the government will whole heartedly welcome miners, if something like a ban happens around.
Salvador is a net importer of electric energy!
The entire production capacity of the country couldn't power more than 1/6 of the current hashrate even if we assume the most efficient gear in terms of j/Gh.
And no, there is no magical geothermal well that out of the blue will produce that energy.
The government will have to ban all the businesses and households that are consuming "dirty" electricity as well.All businesses should be treated equally.Right?

That's exactly what China is doing

, they have a list of activities that are going to be phased out completely, one criteria is how energy intensive that activity is.
And if you think that the EU with its crazy eco-movement where everything is solar and wind is too far away from banning anything related to fossil fuel you're deeply mistaken. Politicians here are ready to tell us to stay in cold and have rationalized electricity and planned blackouts rather than admitting we can't live a normal life without "dirty" energy.