Genesis 2:7 And YHWH God forms the man - dust from the ground, and breathes into his nostrils breath of life, and the man becomes a living creature.
2:8 And YHWH God plants a garden in Eden, at the east, and He sets there the man whom He has formed;
2:9 and YHWH God causes to sprout from the ground every tree desirable for appearance, and good for food, and the Tree of Life in the midst of the garden, and the Tree of the Knowledge of Good and Evil.
2:16 And YHWH God lays a charge on the man, saying, “From every tree of the garden eating you eat;
2:17 but from the Tree of the Knowledge of Good and Evil,
you do not eat from it, for in the day of your eating from it - dying you die.”
Genesis 2:22 And YHWH God builds up the rib which He has taken out of the man into a woman, and brings her to the man;
2:23 and the man says, “This at last! Bone of my bone, and flesh of my flesh!” For this is called Woman, for this has been taken from Man;
2:24 therefore a man leaves his father and his mother, and has cleaved to his wife, and they have become one flesh.
Genesis 3:1 And the serpent has been cunning above every beast of the field which YHWH God has made, and he says to the woman, “Is it true that God has said, You do not eat from every tree of the garden?”
3:2 And the woman says to the serpent, “From the fruit of the trees of the garden we eat,
3:3 but from the fruit of the tree which [is] in the midst of the garden,
God has said, You do not eat of it, nor touch it, lest you die.”
3:4 And the serpent says to the woman, “Dying, you do not die,
3:5 for God knows that in the day of your eating of it - your eyes have been opened, and you have been as God, knowing good and evil.”
3:6 And the woman sees that the tree [is] good for food, and that it [is] pleasant to the eyes, and the tree is desirable to make [one] wise, and she takes from its fruit and eats, and also gives [some] to her husband with her, and he eats;
3:7 and the eyes of them both are opened, and they know that they [are] naked, and they sew fig-leaves, and make girdles for themselves.
Although it is not recorded that God spoke directly to Eve not to touch the tree and its fruit, one could argue that touching the forbidden fruit was necessary to eat of it. and given that God [Jesus] spent time with them
he may well of chatted to them about a great many topics and reaffirmed his instructions to them.