1 Samuel 15:14 But the Spirit of the Lord departed from Saul, and an evil spirit from the Lord troubled him.
Do passages like this trouble you? God is good, how can evil come from God? Passages like these feed troubled souls who deny God. They seek to vilify their denial by saying God is evil. What they say is spiteful and wounds us. Do you have an answer for such accusations?
If you look to the word for spirit you will see that the same word is used in both cases, in the Hebrew, ruwach. While some would argue it is the same spirit, they do err. There is a huge difference between the Spirit of the Lord and the spirit of man. God breathed life into man, He did not make man God. One of the base definitions of ruwach is breath, but it is not the only definition. One of those definitions is disposition. Specifically disposition (of various kinds) uncontrollable, or uncontrollable impulse.
The Spirit of God is God and is not controlled by man. Once the Spirit of the Lord departs man is left with nothing but is own disposition, his own uncontrollable impulses. These are the impulses Saul was born with and we delegated to a secondary and suppressed nature by the presence of the Spirit of the Lord. When the constrainer is removed, man is left with nothing but his own disposition.
If conclusions drawn by the text you are reading lead you to an understanding of God that is something other than foundational truths about God, then your understand is imperfect and further prayerful study is required. The five foundational truths about God are: God is love, God is holy, God is just, God is merciful and God is true. Scoffers will not seek to understand. We as believers should.
Proverbs 25:26 A righteous man falling down before the wicked is as a troubled fountain, and a corrupt spring.