Currently, Bitcoin cannot be banned in a single country. If you understand the blockchain, you know that, technically, no country can basically control Bitcoin. Because Bitcoin is a consensus reached by anonymous participants around the world, it can only be restricted by law but obviously cannot be forbidden. It can only be guided and restricted.
My country does not explicitly prohibit bitcoin transactions, but restricts some bitcoin transactions. If the op country bans bitcoin transactions and mining, I suggest you don’t use your own wallet to test it. Mining can be relocated to other countries that are friendly to cryptocurrency. In short, you must protect your property.