I believe God’s commands are only to those whom He knows are going to desire to obey them. What sense or reason would there be to think He would command those whom He knows would not obey them, which I believe if conceived otherwise, would be to misunderstand His omniscience. I see it that his commands, warnings and admonitions in Scripture stand as identifiable direction to the believer, and as a witness against the unbeliever (Deu 30:19), from who He shouldn’t even expect obedience.
Just as God uses the letters to the churches in the Book of Revelation to reveal His will and direction (which I believe all the churches will follow, being under the Spirit’s control and the Body and Bride), He makes clearly known via these commands, warnings and admonitions unto His children concerning what His Spirit will be guiding them unto—without fail. Similar to Him hyperbolically stating “ye will be doing this, or that, and such and such!
The Book of Life, established from all eternity is the mind of God’s foreknowledge of all who will choose the “straight gate” and “narrow way.” In our knowing that God already knows everything secures comfort to those who are and will be His. Thus we can be at peace to know that He needs not to leave anything to chance, nor, as one has said “never has to call an emergency meeting with the Holy Trinity.”
I think an acceptable explanation of God’s omniscience could be that which concerns what He knows and when He knew it: the former is all that ever occurs here and in heaven; the latter is from eternity past, which is “from everlasting”—to eternity future, which is “to everlasting” (Psa 41:13; 90:2; 103:17; 106:48). What answer could there be to the reason why God would create man, foreknowing that the majority of mankind will perish (Mat 7:13, 14)? I’d like to think that it’s because He also foreknew all who wouldn’t perish.
Though Revelation reveals an innumerable amount of saved souls “which no man number” (but God can - Rev 7:9), they are “few” in comparison to those perishing. Our omniscient God has always had the saved on His mind, and so, created in knowing the worth of those whom He knows are and will be His, which is demonstrated in the parable of the lost sheep and reveals to me that even a single soul is equal worth to God as an innumerable amount of souls would be. This I think is exemplified in the phrase, “doth he not leave the ninety and nine, and goeth into the mountains, and seeketh that which is gone astray?” Each believer is as important as all believers combined, meaning no believer is more or less important to God—thus equally cherished!