Stop making problems. Unless you’re a Math teacher.
Stay away from people who constantly seek problems. Unless you like the challenge.
Negative thinking is exhausting, it creates problems for no productive purpose.
I do, however, keep a certain kind of “negative people” close by. The ones who are always ready to pounce with a “you can’t do that“, “that can’t work“, “that’s not possible“. Growing up with a few of them around had been quite beneficial. They always challenge me to disprove their negative, defeatist beliefs. And as I dismantle as many limitations as they can set before me, I discover how far I can go.
In the end, if you can’t stay away from negativity, turn it into something positive.
Be part of the solution.