That's not how global free trade works, these laws weren't already established they were added to specifically target American companies which must be in violation of several WTO ordinance.
Do you seriously believe Apple would have gone this malicious compliance route rather than pursuing WTO grievances through their army of lobbyists if they thought that had half a chance of succeeding?