The snake is pretending to be surprised that God has made this rule. This rhetorical question can be translated as a statement. Alternate translation: "I am surprised that God said, 'You ... garden.'" (See: [[rc://en/ta/man/translate/figs-rquestion]])