I have been told that, in the Suez Canal Zone, local bad guys were wont to enter British camp fortifications at night to steal anything not nailed down or worn about the person. They - once! -attempted this activity at a camp where Gurkha troops were stationed. The head of one malefactor was displayed on a pole to deter others similarly minded, and apparently it had the desired effect.
(Allegedly)