You want operate in country X, you must comply with country X laws or be ready to be percecuted. (From notice, to confiscation of servers, to executions; depends on the X and how inconvenient you are)
Many states have a wide variety of provisions applying national law in ways that might be contrary to all kinds of naive assumptions about how their jurisdiction should be limited
Jurisdiction is like good manners, there is plenty of those, but it is not some kind of fundamental law of nature.