I have never been stopped, but several of my acquaintances and students have had that experience.
Usually they were taken to the nearest police station and questioned, and then they had to write a letter of apology and promise to keep their passports/residence permits on them at all times.