Why does a warning still require avoiding sin when pardon is possible?

Forgiveness of Shirk and Other Sins; Threats and Divine Mercy