Some Maps and statistics to confirm or refute one’s perception about San Francisco:
https://www.neighborhoodscout.com/ca/san-francisco/crime
https://www.sanfranciscopolice.org/stay-safe/crime-data/crim...
https://www.crimemapping.com/map/ca/sanfrancisco
I should add that I am not a US citizen nor I live in the US. I live in a 10 million inhabitants south American capital, where Tv reports on crimes of all sorts committed every day. I, however, have not been robbed in the last twenty five years. Sometimes personal experiences do not reflect geography and statistics.
Edit: comment line.