You're twice as likely to be murdered in parts of the San Francisco BA.
https://www.statista.com/statistics/984826/homicide-rate-cos...
https://www.sfchronicle.com/crime/article/Homicides-are-up-3...
https://www.statista.com/statistics/984826/homicide-rate-cos...
https://www.sfchronicle.com/crime/article/Homicides-are-up-3...
Safety is highly situational, and it depends a lot on the way crime happens. If it's criminals killing criminals (e.g. gangs), ordinary citizens and visitors might be fine. But if there is a lot of opportunistic crime, a foreigner might be a target.