Its tough to balance reading https://www.sfgate.com/crime/article/San-Francisco-crime-Che... that kinda shows crime is average for a large US city with the Bell Riots in the DS9 storyline https://memory-alpha.fandom.com/wiki/Bell_Riots as an outsider.
Either way, shouldn't San Fran have plenty of money from all the tech there and plenty of extra office real estate from covid to try and put a dent in all the circumstances that lead up to someone needing to steal or getting addicted to drugs? Probably too optimistic of a take ...