I'd argue that it's more important to not treat black people like they are criminals than it is to marginally reduce your risk of being the victim of a crime.
Well, I wouldn't exactly say marginally.
Obviously depends where you are. If you're rich and in a rich area with rich blacks and rich whites it doesn't matter at all.
If you're in, I don't know, a high school whose district spans from the city to the suburbs, race might actually come into play.
After all, you take a white american and a black american, and if there's an assault between them it's 200x more likely to be the black man doing the assaulting.