Today I was reading Genesis 2 and came to this verse:
Genesis 2:9 NIV
 The Lord God made all kinds of trees grow out of the ground—trees that were pleasing to the eye and good for food. In the middle of the garden were the tree of life and the tree of the knowledge of good and evil.
I understand the concept of the tree of life and and its purpose for the most part (it also makes an appearance at the end of The Book of Revelations, I think chap 22) but what I don’t understand is God’s purpose for creating the tree of the knowledge of good and evil. Now, I don’t want the conversation to translate into a question of “did God know man was going to sin before the fall?” But I’d rather know what the general purpose God had in mind in placing this tree in Eden and telling Adam and Eve basically “do not touch.” Why is the tree there in the first place? Does it have to do with free will and the option of human choice? It’s an interesting question that tumbled around in my mind as I read Genesis 2.
Thank you for reading this and taking the time to respond, God bless!
(P.s sorry if my question of free will and human choice comes across as contradictory to what I asked you not to answer!