Make sure the cost of attacking your people is extremely high
The 19th century was the most peaceful in history - there were very few major conflicts after Napoleon was liquidated.
The hegemon, back then, was the British Empire. When you flew the British flag, you were safe, as any attack on a ship or an expedition under the British flag...See more