Earlier quoted context omitted.
If you believe that is a serious concern in your area, get bars for your windows. There is no shame in it, I've lived in numerous buildings that had barred windows. However I suspect that most people don't sleep on the ground floor (either in a multi-level house, or in an apartment building) so for them this should be less of a concern.
Bars on the windows? Now we're back to fire safety.
https://www.usfa.fema.gov/downloads/pdf/publications/tr-138....
https://www.bjs.gov/content/pub/ascii/vdhb.txt
There are other solutions as well. Many window frames are designed to permit the window to be cracked open but not opened fully, to prevent ingress while still allowing egress (either by disengaging the mechanism or by breaking the window if necessary.) Such a mechanism can often be retrofitted to an existing window frame for no more than a few dollars. I've seen people create their own using a short length of dowel rod placed such that it prevents the window from opening fully. There are also a variety of purpose made mechanisms on the market.
These mechanisms are not as secure as bars on windows, but about as secure as a normally closed and locked window. The payoff for less security is enhanced aesthetics and fire safety.
There are many reasonable solutions to bedroom ventilation.