God knew that Adam and Eve were going to break His covenant with them and He did not choose to make them differently or to change the circumstances..instead He made a plan B :>)
Of course He foreknew that Israel would be unfaithful. He could have if He chose change that ..but he did not. Some of it was foreordained I suspect and some allowed..but all of it was within His will and His plan
You're waivering! ;^)