That's what conceal weapons permits are for. Criminals won't know and every attempt to do stupid thing might mean the end of them.
If wanabe robbers expect citizens to be armed and legally able to protect themselves and their loved ones - they will think twice if it worth dying for $100.