If mining is declared illegal in a country by the government majorly due to the large electricity requirements and then a miner decides to go off-grid and generate their own electricity through alternate means to continue mining, will it be a crime to the government when this individual is not using the electricity they supply for his mining activity?
Try it and let us know. :-)
Seriously, it would probably depend on how you did it.
Setting up your own power plant and getting coal / oil / natural gas / whatever to run it means that there is that much less of said resource for the rest of the country to use and would drive those prices up.
Go out and buy a few acres of solar panels, probably not as big a deal.
The question really is, why bother, flipping off the government never ends well.
-Dave