Learning to use words like "some", "many", and "most" helps. But, yeah, unwarranted generalizations are easy mistakes to make; accepting that they are mistakes rather than defending them on the basis that you should be allowed to make unsupported negative characterization of broad groups is the appropriate response; the alternative is justifying bigotry with laziness.