Everything that God has created is good. God has an will never create anything that will make us sin. Truly, people ask questions like “why did God create the apple when He knows that Adam and Eve will commit a sin because of the apple?” They may have a point but still very pointless.
In the Bible, Genesis 1:31 says; And God saw every thing that he had made, and, behold, it was very good.
And the evening and the morning were the sixth day.
The only thing that caused Adam and Eve to sin unto God was disobedience. They disobeyed God. There were some plants or fruits that God has said they should eat and the ones that they shouldn’t eat.
Genesis 2:16-17 says; And the LORD God commanded the man, saying, of every tree of the garden thou mayest freely eat
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.
You see? This is what God said to them but they disobeyed. It is the disobedience of the other day which caused Adam and Eve to sin but it isn’t God who was the cause of their sin.