Islam teaches that Adam and Eve disobeyed God, repented, asked for forgiveness and God forgave them. They had to suffer the consequences of their actions by living a mortal life on earth, but their relationship with God was never changed. God has always remained accessible.