At work, no. I taught Elementary School; not exactly a hotbed of criminal activity :)
But I did get accosted in the hallway directly outside my apt. in Philly.
He was coming down the stairs and acted like he was a fellow tenant who had just moved into the building in order to start up a brief conversation. He started asking about finding a groomed for his cat.
When he declared his intention, I just handed him the available money in my fanny pack and began yelling for someone to call the police and he promptly beat a hasty retreat out the front door.
Fortunately, I had just returned from grocery shopping and had less than $10 on me so I got off cheap.
I did call the police and complained to the management company for the building. The reason this guy was able to access the bldng was because one of the third floor idiots left one of the exit doors propped wide open (presumably to catch a breeze in the hot weather) so all he had to do was walk up the fire escape stairway to have complete access to the bldng.
Fortunately he didn’t have a weapon and I had so little cash on me that it wasn’t worth resisting over.
But, I’m aware that if there were a weapon involved or I had significantly more money on me, it could easily have been a far more serious or damaging scenario. I was fortunate that day.