 He knew Adam and Eve would fall. He knew that the angels would fall, some of them. But he didn't know it as if he were anticipating it happening in the future, because God doesn't anticipate the future. He doesn't look back and remember the past. Everything is now for God, which is hard for us to imagine. But this plays into the answer to your question.