The question was asked: “Did God (Elohim) know in advance that Adam and Eve would sin?”
Yes, Elohim, in His omniscience, knew that the first man and woman would relent to Satan’s enticement as Elohim ordained the Gospel as a battle strategy “to destroy the works of the Devil” “before Time began” (1 John 3:8b; Genesis 3:21; 2 Timothy 1:8-10).
It is critically important that the Christian understand causation/reasoning for our existence within a Realm called “Time” and that we’re in an extended spiritual war that was initiated by a rebellious cherub angel in the Kingdom of the Spiritual Realm and our entire existence from conception in the womb to the grave is as a participant in that spiritual war, a spiritual war having entered into the Realm of Time and physics as our Earth was created as a repository for same thereby permitting Elohim to limit destruction to His Kingdom while dealing with His enemies via self-less love; therefore, live your life accordingly and appropriately thereby honoring our King, Jesus Christ, our Creator, Warrior, Messiah and Judge.
It is written,
“8 Whoever makes a practice of sinning is of the devil, for the devil has been sinning from the beginning. The reason the Son of God appeared was to destroy the works of the devil.” 1 John 3:8 (ESV)
“12 For we do not wrestle against flesh and blood, but against the rulers, against the authorities, against the cosmic powers over this present darkness, against the spiritual forces of evil in the heavenly places.” Ephesians 6:12 (ESV)