You are on the right track, but only looking at one side of the coin. Paul was warning against âwisdomâ (the kind sought by and originating in the world, a world that is dead to His true wisdom) rooted in thinking about things with oneâs self in mind, whereas wisdom from God is the fear/reverence of Him and His holy knowledge (prov 9:10), or in other words Biblical wisdom. Both kinds of wisdom (worldly and Godly) are a process of the mind, but one is dependent on the trusted source (God) vs the other whichâs doomed to burn like wood, hay, and stubble.
Hereâs a good
link describing the mystery of the origin of Luciferâs sin.