2nd epistle of Peter was written to give us strong principles for godly living especially in the midst of the danger from within, which comes from false teachings , Peter encourages us to study and know the word of God, so we can be able to recognize heretics and be able to root out their heresies.