How do warning about a harmful act and encouraging it differ?

The Prophet’s Excellence and the Obedience of Angels