But countries decide who to punish for what. One thing might not be unlawful in your country, but in another, and that other country can try to go after you.
That fact is rather boring and well-established. What matters is how the other country enforces the punishment.