The standard you’re proposing would allow Afghanistan to shut down Hacker News on the basis that it provided services to at least one Afghan and the content here violates sharia law.
So you are entirely right any country can do that at any time. Most countries don't have a way to enforce it on you or your users.