Would a wise person avoide situations where other could perform lot of demerits?
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.