From the Sutta Nipata: The famouse Mangala sutta, the highest blessings, starts with:
Asevanā ca bālānaṃ paṇḍitānañca sevanā,
Pūjā ca pūjanīyānaṃ etaṃ maṅgalamuttamaṃ.
Not consorting with fools,
consorting with the wise,
paying homage to those worthy of homage:
This is the highest protection.
- The vicious are dear to him. He likes not the virtuous; he approves the teachings of the ill-natured — this is the cause of his downfall. from Discourse on Downfall, Sutta Nipata
There is no more clear advice in regard of assosiation, in regard of fools, outcasts and bad friends, since it is the only outer condition of either growth or downfall. "Not to do! When ever traced"
To take such even as advisor or dwell in areas where outcasts even get a lot of reputation, shows just the natural flow of those never met the good teachings, becoming there on and manys "enemies" and increasing suffering for both.
While such as pain, harsh words... is something that one should endurance, fools are to be avoided:
" And what are the fermentations to be abandoned by avoiding? There is the case where a monk, reflecting appropriately, avoids a wild elephant, a wild horse, a wild bull, a wild dog, a snake, a stump, a bramble patch, a chasm, a cliff, a cesspool, an open sewer. Reflecting appropriately, he avoids sitting in the sorts of unsuitable seats, wandering to the sorts of unsuitable habitats, and associating with the sorts of bad friends that would make his knowledgeable friends in the holy life suspect him of evil conduct. The fermentations, vexation, or fever that would arise if he were not to avoid these things do not arise for him when he avoids them. These are called the fermentations to be abandoned by avoiding.
So even it there is danger to be suspected!
Since association has (even not recognized) extrem fast impart one oneself, nothing more is urged as outer needed condition as to avoid evil people and wrong view.
Not a single account that the Buddha and wise advice in ways of seeing it easy can be found, but the opposite.
Even in regard of people how are actually no more able to fall down, or in regard of simply dwelling near, the Buddha adviced not to do such, because at least one could be suspect to associate and would therefore be avoided by good people.
Well-known simile is that of a banana leave taking on the smell of fermented fish.
The fermentation of follish compassion with people who can actually only be helped by avoiding, if, cost one not only the reputation of being not firm in faith of the Buddhas advices but also the circumstance to be suspected being another of those outcasts.
Even under recluses:
- "Bhikkhus, these three persons are evident in the world. Which three? A certain person should be loathed, should not be associated. The second should be looked after not associated and the third should be associated. Bhikkhus, which person should be loathed and not associated. Here a certain person is unvirtuous, with evil thoughts like rubbish, with secret actions, with only a promise to recluseship, festering inside and filth oozing out. Bhikkhus, this kind of person should be loathed, should not be associated. What is the reason? In some way if this person is not imitated, ill fame spreads, this is an evil friend, an associate of evil. Just as a serpent with excreta on its body would not sting anyone, for he smears excreta. In the same manner an unvirtuous person with evil thoughts similar to rubbish, with secret actions, with only a promise to recluseship, festering inside and filth oozing out should be loathed, should not be associated.
More on friendship and association here: Admirable friend - [Großartiger Freund] kalyanamittata.
Whether one is capable to trace of what is good or bad, aside of being informed, is of course a matter of ones Upanissaya and tendency, and nobody at least could does destinated to bad association help them out, not even the Sublime Buddha.
How ever, for those with Nissaya to a better: How to address wrong view?
In regard whether such people, associating with outcasts, are avoided as well: As in regard of Vinaya and rules of Monks, yes, they have to. Others than not instructed may tell, there are firm rules to seperate those with wrong views and bad conducts out or to be avoided. In areas of fools wise and Dhamma gets censured, yes. Also a strong sign to "run away". So take care with whom you associate and in which spheres you get involved. Smell last long and you might not that independent from support of wise as you may think for now.
(Note: this is not given for trade, exchange, stacks and association with what binds to this wheel but for liberation from it.)