If I fire off an agent to buy items at random times from a list which is updated in country, where does the purchase of the list items happen?
Obviously, yes. A crime is a crime, so what difference does it make what country it was committed in?
Law systems usually state explicitly their jurisdiction domain, depending on the level of offense.
I'm sorry that you are not familiar with how laws work but it's kind of a big concept and I don't really have time now to teach it to you. I would recommend Wikipedia or perhaps ChatGPT to get started.