Ideally even the largest nations should be held to some kind of standard and if they go too far a small country that objects should join with as many other countries as possible to put an end to whatever acts crossed that line, including by invading if needed. There's plenty of room to debate where those lines should be drawn though. I'm not hoping for another world war any time soon, although there are certainly things going on today that might eventually justify one.
If someday the rest of the world feels the need to put the US in check, I just hope we'll be able to say that we, the regular American citizens, also weren't supporting whatever horrific activity was causing that situation, and I'd hope that the rest of the world would keep that in mind and focus their efforts primarily on those more directly responsible. It should really be our job to keep our government in check so other countries don't have to resort to anything like that though. If we lose the ability to do that, we might actually welcome outside help in getting our democracy restored.
It is the US policy that no court other than US ones can prosecute US service members, politicians and so on.
It is actually a Federal Law enacted in 2002.