In answer to 'biblical basis' and God's first instruction to Adam :
And out of the ground made the LORD God to grow every tree that is pleasant to the sight, and good for food; the tree of life also in the midst of the garden, and the tree of knowledge of good and evil. [Genesis 2:9 KJV]
And the LORD God commanded the man, saying, Of every tree of the garden thou mayest freely eat: [Genesis 2:16 KJV]
In the Garden of Eden, God warned Adam of something that existed - the tree of the knowledge of good and evil.
But of the tree of the knowledge of good and evil, thou shalt not eat of it: for in the day that thou eatest thereof thou shalt surely die. [Genesis 2:17 KJV]
That tree is not stated to be in the Garden. The other trees are stated to be in the garden. They were part of God's provision for humanity. Branching subjects of knowledge. Areas of knowledge that can be pursued with regard to humanity's needs and necessities. Agriculture, food production, food preparation, medication, provision of clothing, parenting, general welfare and so on.
Branches of knowledge, essential to humanity and to human society within the environment of creation. All of it - God given and God blessed.
But the other tree, God warned of. He had not created it. But in creating intelligent life, as such, that thing sprang into existence. And God faithfully warned of its existence and warned of its consequence, if partaken as a means of life.
Know of it, yes. Be aware of it, certainly.
But do not partake of it as a means of life - it will kill you.
He did not create it. But it is a consequence of the creation of intelligent life.
And the Serpent made himself known. And the serpent tempted the woman and confused her and mesmerised her. And the woman tempted the man.
And he said unto the woman, Yea, hath God said, Ye shall not eat of every tree of the garden? [Genesis 3:1 KJV]
And Adam transgressed.
The creature is weak. Flesh is weak.
But God is a Saviour. And before it all, as the scriptures make clear in many places, God's foreknowledge and God's determination (unanimously, within the counsels of deity) prepared for the inevitable.
Elect according to the foreknowledge of God the Father, through sanctification of the Spirit, unto obedience and sprinkling of the blood of Jesus Christ: Grace unto you, and peace, be multiplied. [I Peter 1:2 KJV]
Redemption and restoration were never in doubt.
For even the very activities of Roman soldiers and Jewish leaders were in accord, unwittingly, with ...
... whatsoever thy hand and thy counsel determined before to be done. [Acts 4:28]
Therefore, there is no contradiction.
It is the will of God that humanity should propagate. But God's ultimate purpose has always been - and is now fully revealed to be - a new creation. New heavens and a new earth.
And the dwellers of the new earth, under new heavens, are those who are born again. Born - at first - in Adam, the man of sin and death, but born again of water and of spirit, as John records.
This ever was God's purpose, before the foundation of the (present) world. That the first humanity fell at the first opportunity and proved itself to be not fit for purpose, was ever seen, ever known and ever provided for in the wisdom and understanding of the Almighty.
No contradiction exists.
And no material outside of the genuine holy scripture is required.