Genesis and Revelation both are allegorical. Characters are representation of human behavior. For example, hare and tortoise competed. Story literally never happened, yet we come across hare-like people and tortoise-like people around us.
Similarly, snake represents sin which can communicate with us in any form wherever we are, and yielding to sin brings misery. Once we succumb to sin, then we engage in shifting the blame which shows deep within us we are pure, hence sinning is alien to our nature. Sin destroys the self-respect and makes us feel ashamed.
Thus if you look behind the details, account would make sense. Literally, it doesn't make sense.