If you are doing all your mining stuff legally then I don't see any problem with it. You are not facing any risk of getting your mining stuff confiscated. But if you are mining while cheating or even stealing electricity then expect the government to run after you and confiscate your stuff. That is just as simple as that.
In terms of staking, I am in favor of it compared to mining.
You don't even need to steal electricity or use it illegally for them to confiscate and ban your mining business, it is as easy as not complying with the papers needed for your business to operate that will trigger them to have reason to confiscate and to stop you. Remember, government have a deeper reason why some instances like this is happening, they don't want cryptocurrency right from the start so it will be easy for them to pass regulation that when we just fail to comply even with simple terms then we are getting compromised.