It's actually a bit more nuanced. Any government in any country can at any time decide that their laws apply to you (because hey, it's a government, they can do whatever they want). However, unless you are operating in that country, there is very little they can do in terms of enforcing that upon you.
Yes, that's the point I was trying to make - your country would have to be willing to participate. That's risky, albeit to varying degrees, depending on the country a person/business reside in because governments can change their opinion at any moment or enter in new agreements to combat whatever they may deem as "global crime".