Then when he says, if any man teach otherwise, he excludes the contrary assertion:
first, he describes the nature of false doctrine;
second, its source, at he is proud;
third, its effect, at from which arise.
If you wish to know whether a doctrine is erroneous, you can tell from three marks: first, it is against the doctrine of the Church; hence he says, if any man teach otherwise than I teach and the other apostles. This is the first mark: if any man preach to you a gospel, besides that which I have received, let him be anathema (Gal 1:9). For the doctrine of the apostles and prophets is ...called canonical, because it is, as it were, the rule of the intellect: you shall not add to the word that I speak to you, neither shall you take away from it (Deut 4:2); if any man shall add to these things, God shall add unto him the plagues written in this book (Apoc. 22:18).
In regard to the second mark he says, and consent not to the sound words of our Lord Jesus Christ. For the Lord came to give testimony to the truth: for this was I born and for this came I into the world, that I should give testimony to the truth (John 18:37). Therefore, he was sent by the Father to be a teacher and master: give ear to him always, and he shall be a father to you (1 Macc 2:65). Consequently, anyone who does not consent to his teachings is in error: it is like the sin of witchcraft to rebel: and like the crime of idolatry to refuse to obey (1 Kgs 15:23). And he says, sound, because in Christ's sayings there is nothing corrupt, nothing false or perverse, because they are the words of divine wisdom: all my words are just; there is nothing wicked or perverse in them: they are right to those who understand, and just to those who find knowledge (Prov 8:8).
As to the third mark: my son, keep the commandments of your father, and forsake not the law of your mother (Prov 6:20); hence he says, and to that doctrine, namely, of the Church, which is according to godliness. This godliness is shown in the worship of God: and the acknowledging of the truth which is according to godliness (Titus 1:1).
Source: Commentary on 1 Timothy