Have you ever seen on TV how a mama bear gets furious when someone gets close to her cubs? She turns into a total beast! The Bible uses that funny picture and says something surprising: it's better to meet an angry bear than to stay next to someone who's doing something really foolish.
Why? Because you can run from the bear and get away, but when you stay close to someone who's making trouble, you end up in the trouble too! You know when a friend wants to do something dangerous or wrong and says “come on, it'll be fun”? The smart choice is to step away right then.
It's not that we don't like that person; we can still pray for them and be kind. But sticking around during the trouble always ends badly. Whoever is wise chooses carefully who they stay close to.
When the trouble starts, the wise one steps away.