This Is My Faith - Al-fatlawi, Ali - الصفحة ١٦٢ - Is Infallibility Against Free Choice?
In short, the Almighty Allah knows about people’s intentions and their future and so He knows that when this gift is bestowed to them, they will use it for the sake of obeying the Most Gracious Allah freely and without any restraints.
Anwar: Are heredity and education or good breeding influential factors in this matter?
Hasan: Of course, they are. Although they are external factors that cannot be chosen by an individual, yet they attribute to this matter in a sense that these factors help that person to achieve infallibility through self-restraint and righteousness. Thus, without self-restraint and righteousness, heredity and education are useless factors; they are, in fact, requisite factors but not compulsory.
Anwar: What do you mean by ‘requisite factors but not compulsory’?
Hasan: I mean they can lead to either perfection or deficiency but these two factors do not force an individual who has them towards perfection or deficiency.