If I were to fly to the USA, purchase something that was illegal in my home country (and explicitly state I was going to take it back home), then took it back home - would the vendor be prosecuted?
Bartenders from other countries don't get locked up the moment they enter the US because they served alcohol to someone (a US citizen?) between 18 and 21. The US does not have jurisdiction over alcohol sales in other countries.
In this scenario, what's more likely to be illegal is bringing the item into the country.
It's difficult to make physical analogies to these types of internet laws. What makes them 'tricky' is how they are not physical.
And no before you ask crypto won't solve this because Uncle Sam demands USD stablecoins to have sanctions mechanisms built in and clearing entities that don't implement KYC etc. will find themselves subjected to prosecution in other ways.