Any evaluation vs. historical crime levels (especially violent crime levels) will reveal that this is little more than a blip. Yes, the Tenderloin is a complete mess. Yes, it's true that the DA is experimenting with measures that are different from the usual mass-incarceration approach. Yes, this is causing some issues.
The rest of SF is extremely safe by any reasonable standards.