How should warnings of punishment and texts of forgiveness be read together?

Forgiveness of Shirk and Other Sins; Threats and Divine Mercy