The snake (of the trouser variety) tempts Eve with the forbidden fruit (hanky panky) that she shares with Adam. The consequence of which is painful childbirth.
They’re even specifically stated to be naked for this situation.
I think you are confusing what OP is saying with what the Bible says.
I took it more along the lines of “this story existed and was originally meant to teach young girls not to be tempted” and then the writers of the Bible came along. They used a common story to help with the point they were trying to get across.
This is not too far off from what is commonly known about pivoting the pagan ritual for the winter solstice and dressing up a pine tree. Now know as Christmas tree.