Sometimes thought experiments serve a useful purpose. Pursuing a hypothetical to it's logical end, can be revealing. In the case of the Yahwist creation myth, it can become a rabbit hole.
The story was never intended to be logical, it screams that when it includes talking animals and magical fruit. (drawn from a deep pool of ancient myth) It was 'theological' in purpose. It pantomimes religious concepts like obedience to religious law when at odds with individual and intellectual freedom. As frustrating as that is for some to accept, that is the message.