How can a general warning coexist with pardon for some persons?

Forgiveness of Shirk and Other Sins; Threats and Divine Mercy