Crime isn’t a great tourist attraction. San Francisco is learning that the hard way.