Not to mention WW II and Julia Child.
Before becoming a cook, she was an OSS covert agent in occupied Europe. That takes stones almost too big to lift.
In the military, at least you are armed and have a presumption of prisoner of war status.
So9
What makes you think that spies weren't / aren't armed ? They were and probably still are.