Uh...maybe there’s something in the story I didn’t know...
Well; Eve wasn’t created yet when Adam was told by GOD not to eat of that ONE tree.
What is not stated in the story is how she came to have any information of it.