“How could a loving God create the Devil?”
Since the Bible says that God is good and perfect, it seems contradictory to think that he would have created an evil, malicious, and wicked being. The fact is that the Bible does not say that God created such a person. On the contrary, it says about God: “The Rock, perfect is his activity, for all his ways are justice. A God of faithfulness, with whom there is no injustice; righteous and upright is he.”—Deuteronomy 32:4; Psalm 5:4.
The point to consider is whether a perfect person created by God could do anything other than what is right. Far from making his creatures like robots, God granted them free will—the ability to make their own choices. Hence, a perfect, intelligent creature can choose to do good or to do evil. In reality, only deeds performed by an intelligent creature, human or spirit, endowed with free will could have real moral significance.
It follows, therefore, that God would not have granted his creatures moral freedom and at the same time prevented them from doing evil should they choose to do so. Jesus referred to a misuse of free will when he said of the Devil: “He did not stand fast in the truth.” (John 8:44) That statement clearly indicates that the one who became the Devil was originally a perfect spirit person, who at one time did “stand fast in the truth.” Jehovah God made his creatures free moral agents because he loves and trusts them