Above he showed the value and usefulness of the virtues; here he explains why they are needed, namely, because whoever lacks them runs into the danger of false doctrine. In regard to this he does two things: first, he shows the falsity of the doctrine into which they lead; second, the false condition of those who teach it, at desiring to be.
He says, therefore: the end of the commandment is charity, and these are the sources of the law from which some flee: they have spoken vain things, everyone to his neighbor (Ps 11:3).
And note that departure from charity is the cause of false doctrine, b...ecause those who do not love charity fall into falsehood: they who have not believed the truth have consented to iniquity (2 Thess 2:12). Similarly, those who lose purity of heart: for those with a heart infected by the passions judge all things according to their emotional state, and not according to God: the sensual man perceives not the things that are of the Spirit of God (1 Cor 2:14). Similarly, those with a bad conscience, because they cannot rest in the truth; hence they seek what is false and find their rest in it: having faith and a good conscience (1 Tim 1:19). Similarly, those who have a false faith: he who is unfaithful deals unfaithfully (Isa 21:2).
Source: Commentary on 1 Timothy