It is not skin colour that makes people think that black skin is dangerous. It is your smart brain generalising danger in certain locations with those people based on what they look like and it's proven by humans to succeed.