Generally if your victims are in a country, other (friendly) countries will arrest and extradite you if the crime is serious enough to justify the effort. There is no "world police" that forbid countries from prosecuting crimes committed outside their borders. A lot of it boils down to how friendly the two countries are with each other, and how serious they view the crime.