The tree was a test for mankind which Satan made Adam and Eve fail. God had to stick to his rules and the consequences ensued. The tree was neccessary because Men are to have free will. God wants them to love him and that's not possible when there's no alternative.
There's a whole set of rules, that's why he won't kill Satan just now. Christians believe mankind isn't innocent per definition since they were cast out of Eden. All the bad we see in this world is because of that and because Men has free will and Satan keeps pulling strings to keep them away from God. In this sense, Satan tempts People and makes them sin which in turn can't make them come to God.
God's final answer is Jesus who presents Men with a solution to escape Satan's grip and position themself with God.
That's what christians who want to make sense of it all believe anyway ;-)
The only real contradiction I see is that God says he's perfect but still created mankind and wants people to love him.