If you absolutely must rely on generalizations to safely relate to other people, at least try not to use blunt instruments like gender, skin color, affiliation with major world religions, or nationality.
Generalizations are a kind of bookmaking game, figuring the odds and dealing with large groups of people. How many evil parts per million are there, you ask, in a group of light-skinned people or German people or Christians or men?
In reality we mostly relate to small groups of humans. One to five in number. One man, say, in a turban on a train platform on a Wednesday afternoon.
Consider giving individuals the benefit of the doubt. If bookmaking is your human relations game, then go with the odds. Because the odds that the person you meet will be at least harmless and possible a good person are greatly in your favor.
What price are you willing to pay, when the currency is the lives of others, in order to feel a little safer in the moment?