I believe this to be allegorical, like the creation of the universe and the world. But quite real in that God created the world, and the essence of sin as the human mind began to abstract information from its environment.
Even allegory attempts to explain a hyper reality which is as “true” as we know truth to be. That truth being that all men”hath sinned and fell short of the Glory Of God!”
An event happened in the history of man that caused us to lose our birthright with God; perhaps as an event it could be only explained as allegory but the event happened, Satan attempted to intervene with God’s order and men were corrupted in the process.
Yet God planned a corrective and at the right time in history, God thru his Son entered our material universe...indeed Christ is God’s very thumprint pressed into matter.