It is useful to know these things.

Police raids where the farang are allowed to leave are one matter, but spending a night in jail and being fined $500 makes it worth checking the rules in Cambodia !