Would a wise person avoide situations where other could perform lot of demerits? Would a wise person avoide situations where other could perform lot of demerits?

Or different asked: Would a wise person go out only if meritorious reactions are suspected?

What do you think, or know about the Buddhas view on such?

(Note that this has been not asked for trade, stacks, exchange or entertainment that binds here in this world, but as means of release)
The general Buddhist advise is to associate wise people. There are many Buddhist stories that Buddha encountering unwise people. It appears that Buddha did not have much time for those people. You find stories such as Angulimala. But they appeared to be intelligent people.