"Wisdom, like an inheritance, is a good thing and benefits those who see the sun. Wisdom is a shelter as money is a shelter, but the advantage of knowledge is this: that wisdom preserves the life of its possessor." NIV translation
Wisdom is a gift from God and is simply the ability to put Godly knowledge into action. It is being able to apply the principles contained in the Bible to everyday situations. As Jesus is referred to as the "Word of God" the wisdom that Solomon speaks of is Jesus. He penetrates our hearts to draw us to Him and to preserve our lives for eternity with Him. Remembering this will help us in dealing with the schemes that are brought against us.
"Consider what God has done: Who can straighten what he has made crooked? When times are good, be happy; but when times are bad consider: God has made the one as well as the other. Therefore, a man cannot discover anything about his future." NIV translation
A piece of wisdom that Solomon shares with us here is the fact that God is in control at all times. He is there in the good times and in the bad times.
The devil wants to use the good times to make us think that we do not need God and the bad times to make us think that God does not care about us. This is an attempt to get us to give up and go along with everyone else and walk down the middle of the road. The wise man will praise God in the good times and cling to Him in the bad.
"In this meaningless life of mine I have seen both of these: a righteous man perishing in his righteousness, and a wicked man living long in his wickedness. Do not be overrighteous, neither be overwise - why destroy yourself? Do not be overwicked, and do not be a fool - why die before your time? It is good to grasp the one and not let go of the other. The man who fears God will avoid all extremes." NIV translation
Here, Solomon plays the part of devil's advocate to show us how he wants us to walk in the middle of the road. He tells of how he has seen those who serve God die young while those who do not live many years on this earth. He basically says that you can live a longer life if you don't offend anyone with your righteousness (walk in the middle of the road). You won't make any enemies to plot against you and everyone will get along. He goes on to say that the devil does not want us to be overly wicked and we might ask ourselves: "Why?" The answer is that, deep down inside all of us, God has placed a conscious and even the most vilest of offenders has a line of morality that they will not cross. The devil does not want us to get to that point because he knows that, if we do, we will see the need for a Savior. Solomon goes on to show us how people will twist the Word of God in an attempt to get us to accept this compromise. Today, there are efforts (even within the body of Christ) to get us to compromise (walk in the middle of the road) and they even go so far as to say that there are many paths to a right relationship with God. Although this sounds good, it is a lie that is being used to set many people up for destruction.