Burglars don't really respect the rules :-P
I believe there was a fix that made it so you cannot trap Sims, which was meant to make it so you can't kill them by starvation or drowning. I think fences keep out zombies, paparazzi and other Sim visitors, and animals. Burglars are allowed to ignore the doors and fences.