Depends on who you want to protect against.
For example if you want to protect against hordes of teenagers stealing everything from an Apple store, you just need a button to deploy barbed wire at all entrances and exits, and then a few guards with rubber batons beat the shit out of everyone.
When the state is weak, communities take the law into their own hands, which is why we see this medieval-style fortifications appear again.
Or you can just remotely brick the devices so there is no value in stealing them.
Goodness
Actually, the best way that doesn't get you bogged down in battery charges (for beating a teenager) or manslaughter charges (oops, your barbed wire caused a fatal infection) is social services that help fight poverty and teenage vagrancy (and possibly an accessible iPhone model that takes the edge off of the iPhone jones/envy that your iPhone marketers purposely built).