Near-identical to 22:3, though not word for word: 22:3 has "But the simple," this has "The simple."
Quick answer
One man sees it coming and gets out of the way; the others walk into it. The difference is foresight, and the verse treats it as a skill.
Read both lines
The prudent man's act is hiding, which is not heroic and is not meant to be. Wisdom here looks like getting out of the road, and the book is entirely comfortable with that. The simple, by contrast, pass on. They keep going, which requires no decision at all, and that is precisely the point. Trouble does not need to be sought out; it is arrived at by not stopping.
The saying appears twice in two collections, and this version's small change is worth noting: dropping the "but" removes the contrast marker and leaves the two clauses side by side, which reads slightly more like a report and slightly less like an argument.
Related: Proverbs 22:3 · Proverbs 14:15 · Proverbs 14:16 · Proverbs 21:5
New King James Version®, Copyright © 1982, Thomas Nelson. All rights reserved. Full copyright information. Scripture provided by API.Bible.
Go Deeper
If this verse has been used to put weight on you that it was never carrying, ask about it directly.