Dear Goodlogic,
I want you to pay your Attention at the beginnig of Adams creation in Sura 2:30"(29) And when thy Lord said unto the angels: Lo! I am about to place a viceroy in the earth, they said: Wilt thou place therein one who will do harm therein and will shed blood, while we, we hymn Thy praise and sanctify Thee? He said: Surely I know that which ye know not. (30)"
Here we find the phrase to bring Adam to earth as a vice roy,it was not the aim or it was known by the creator that Adam will inhabit Paradies.The angles knew about the character of the human being having the free will of doing good and bad deeds.
But why did the creator planned the punishment of Adam by giving him the free will to brake a law?
And He taught Adam all the names, then showed them to the angels, saying: Inform Me of the names of these, if ye are truthful. (31) They said: Be glorified! We have no knowledge saving that which Thou hast taught us. Lo! Thou, only Thou, art the Knower, the Wise. (32) He said: O Adam! Inform them of their names, and when he had informed them of their names, He said: Did I not tell you that I know the secret of the heavens and the earth? And I know that which ye disclose and which ye hide. (33) And when We said unto the angels: Prostrate yourselves before Adam, they fell prostrate, all save Iblis. He demurred through pride, and so became a disbeliever.
After the allmighty taught Adam all names ,Adam became the Knower,the Wise he was equal to the Allmighty in this divinely esembly,thats why it seemed that the Speaker in 2:32 who is identified with god who adresses Adam to inform them about the names is the figure as the Adresse because after he informed them about the names there is no break and it continues with "HE said".
I think that that the allmighty doesn´t want or it is not possible to have two unmortal beeings so one had to leave.
Thats why i think it was planned from the beginning.
salam aleikoum