A person shouldn't live among people who are frivolous, because they will influence him: Pesachim 112b
Don't get involved with an argument against three people: Pesachim 112b
People who hear testimony about their community assume that even if they, personally, are not guilty, others probably are guilty: Keritot 24a