It is no wonder that an unsaved man becomes an alcoholic, a drug addict, or commits suicide. To add insult to injury, the unsaved man lives a life of hell on earth and then dies and spends eternity in a literal hell under the earth. God is not the author of discouragement. He is the God of all encouragement. When you become despondent, it is because you have lost fellowship with Christ and are no longer tapping the limitless resources of God.
Discouragement is the opposite of faith.
Faith believes that God can do all He says. Discouragement accepts the circumstances and environment, in spite of what God says. There are times when everything looks dark to us. Adversity comes and our hearts become heavy. In chapter 11 Solomon plants some good advice among all his words of discouragement.