Genesis 1: 27, 2:15-17
God created man in His image with the freedom to choose, but we are limited in these choices because we are not God, and because we (through Adam) chose to go against God. He also warned that either choice (life through Him or death through sin) has consequences.
Many times we feel confident in knowing what God's plan for us is when truly we are lucky if we have a basic grasp of a tiny part of God's timeless, interwoven, multi-faceted plan for humankind from creation throughout eternity. We need to begin to understand the view from God's perspective as He looks at us within His grand plan.