I was more scared just outside work at the Twitter HQ in SF (Market and 10th) than I was anywhere in DF.
Not all nor even a majority of homeless people developed countries are aggressive or unpredictable, but the risk is higher. Around here most of them are quite tame and humble, at least most of the time, and I'd much rather use the word "weak" than "bad", though.
But yes, homeless people can be scary. Being a stranger in SF, I was somewhat alarmed when driving in the city and finding myself in a central neighbourhood where I wouldn't want to stop at the red light.