What was the purpose of the Tree of the knowledge of good and evil

Somehow, an on topic post of mine got moved with the hijack posts to another thread, but I still thinks it better fits in this thread. So I hope that I’m allowed to crosspost it here: