The first was quoting C S Lewis:
CSL spoke of God taking a 'risk' in creating man, a free being who could rebel against Him:So did God take a risk in creating man? From a human perspective this is understandable. With us, what God did was a risk - we think that God stood to 'lose out'.
Man is 'the "weak spot" in the very nature of creation, the risk
which God apparently thinks worth taking' (Problem of Pain)
But this ignores 2 aspects of God's sovereignty.
The first is briefly that he is sovereignly and powerfully free to work all things to good: to his glory, so he was never going to 'lose out' even if it was a risk by any other estimation.
The second is to question if it could have been a 'risk' anyway. Without wishing to attribute more to CSL than he intended, or to play semantic games, as Troy said in his comment, "...risk requires that the outcome of a situation be in question. Risk requires a lack of knowledge. Of course, God knows all, so it cannot really be called a risk." A risk is a risk because we don't know the outcome. It could be good and we gain; we could lose out. God knew the outcome. He knew the humans he made as the pinacle of his creation would fall - we know this because he had already planned to give his Son and his Son had already agreed to it from all eternity, before the foundation of the world (1 Pet 1.20), and moreover the Father had in him chosen the church before the foundation of the world (Eph 1.4). He knew that it would, as it were, look like he was losing, but would work all things to the glory of his grace in the end - thereby showing not only his eternal power and divine nature in creation but his manifold wisdom to the rulers and authorities in the heavenly places, through his redeemed people. That is mindboggling and one can imagine the angels being agape at the temporary apparent 'losing out', but it's not risk: God wasn't hanging around to see which way it would go of various possibilities to which he would respond differently. He was planning and bringing everything about for his glory (See also Amos 3.6, Gen 50.20.)
God didn't take a risk in creating man. An omniscient and omnipotent God cannot take risks.
Parenthetically, just in case someone chokes on having the words 'omnipotent God cannot' in any sentence, allow me to quote CSL's Problem of Pain! On the subject of 'Can God make a rock big enough so that he cannot lift it?':
"You may ascribe miracles to him but not nonsense. This is no limit to his power... You have not succeeded in saying anything about God: meaningless combinations of words do not suddenly acquire meaning simply because we prefix to them the two words "God can." It remains true that all things are possible with God: the intrinsic impossibilities are not things but nonentities. It is no more possible for God that for the weakest of His creatures to carry out both of two mutually exclusive alternatives; not because His power meets an obstacle, but because nonsense remains nonsense even when we talk it about God.