The US police tried that already. They wanted their cops to be above the law when visiting Canada, and the Canadian government told not going to happen. if they want to come to Canada they will be beholden to the laws of Canada
I get the feeling most countries won't take this lying down. I suspect America will be on the receiving end of economic sanctions to start with, then if they continue to violate sovereign nations it can only go downhill from there.