Adam and Eve’s sin was to place themselves in place of God by ignoring His commands. But God cannot comingle with sin.  As sinful beings they could not be in the presence of God, in Eden where He resided, to have fellowship with them, where they could fulfill their calling for worship and work in His presence.  God rightly cast them out of His presence. Whereas they sought freedom from His law, they earned freedom from His presence and therefore His blessing as well.  Their loss of friendship and fellowship with God was a high price to pay.  They learned, as we sadly often do ourselves, that freedom without blessing is slavery.  God would maintain a relationship with man but at a distance.  Only when the Messiah would come would that separation be restored.