It’s a metaphor.
To say it’s a metaphor is not good enough. It merely dumbs things down to secular thinking level. No Christian should be thinking that way or even using that phraseology.
It was the tree of knowledge of good and evil. Unless we refer to it in that way we don’t communicate the proper message.