A God of love who desires to share everything that is good about life and relationships with His created brings did not want a forced subservience. Love is always a matter of choice. God was offering Adam and Eve a choice. It was actually a very easy one. One tree amongst thousands forbidden. It wasn't the tree itself that brought the knowledge of evil... It was the decision they made to not believe God, but believe His enemy, not heeding the warning given, that the result would be death. That it didn't take place immediately was God's grace and mercy working to give them opportunity to repent. But they eventually did die, and their offspring, to this day, have grown steadily worse.
One more thing. Death is an inevitable natural result of sin. Sin separates man from God. Separation from the only source of life will inevitably bring death. Which is what God knew from the beginning, and why He wants everyone, through the scriptures, that the wages of sin is death, but the gift of God is eternal life for those who choose to love God and keep His commandments.