Let's say you are a U.S. citizen and you go to Country X for vacation (or more specifically, with the intent to commit that crime abroad - in case that makes any difference).
In Country X, it is legal to murder people and consume illicit drugs, so you do that before coming home.
Did you commit any crime at all? Has anyone ever been prosecuted for something similar?