From The Race Set Before Us: A Biblical Theology of Perseverance & Assurance by Thomas Schreiner and Ardel Caneday:
We believe that God’s promises have their own function, namely, to establish belief in the God who keeps his promises and to assure us that he is faithful to his people. We also believe that God’s warnings and admonitions have their distinctive function. They serve to elicit belief that perseveres in faithfulness to God’s heavenly call on us. Thus, God’s promises and God’s warnings do not conflict. Rather, the warnings serve the promises, for the warnings urge belief and confidence in God’s promises. Biblical warnings and admonitions are the means God uses to save and preserve his people to the end.