How to use "discourage" in a sentence

Sentences

If they were discovered and confronted by a squad of angry security men, Elliot's one pistol might not be enough to discourage an assault

No doubt, said the report, the situation was strange and serious, but the public was asked to avoid and discourage panic