- themselves as perfect but making the odd honest mistake every now and then
- others as fundamentally flawed, persistent rule-breakers who Need To Be Punished
Even if they’re broadly the same or worse. This is true on the road, in college or writing code. A lot of people will be unable to look at their own tiny little infractions and see them as equivalent to the flagrant disregard for the rules that they observe in others.
We judge others by their actions. We judge ourselves by our intentions.
When people see others in the neighbourhood that fit a 'pattern they might associate with criminality' this has nothing to do with viewing 'others that need to be punished' rather just a fearful view of difference, and probably lack of exposure to people that creates some low-key bigotry. Throw in some neuroticism and too much free time, possibly some mental health issues and it's a problem.