He did . she was told what behavior to avoid. Free will came into play .
And that is precisely the point.
Only w/ free will can man give his love freely back to God.
Free will is a great gift and a terrible burden.