Carefully study to present yourself: he describes the correct method of resisting: first, in regard to the right intention; second, in regard to the proper actions; third, in regard to right doctrine.
A person who wishes to dispute must first examine his intention to see whether he is motivated by good zeal; that is why he says, as one approved unto God, who proves the heart: for not he who commends himself is approved, but he whom God commends (2 Cor 10:18); you have proved my heart and visited it by night (Ps 16:3).
Second, he must be sure that he practices in his works the doctrine he pre...aches: if he does not, he deserves to be embarrassed. Hence, he says, a workman who does not need to be ashamed. As if to say: do these things so that you will not be ashamed.
Third, he must take care to handle the word of truth correctly, by teaching what is true and useful to his hearers; hence, he adds, rightly handling the word of truth and not looking for gain and glory: for we are not, as many, adulterators of God's word; but with sincerity and as from God before God in Christ we speak (2 Cor 2:17).
Source: Commentary on 2 Timothy