You are correct. Generalising and criticising others just because they belong to same caste, region etc. is definitely not correct. Every society has good and bad people. It doesn't mean that all people in their become bad.
Thanks for writing such content for the community here.