To persuade someone not to do something; to discourage.
To prevent something from happening.
To distract someone from something.
To take a customary action to ward off some misfortune that is believed to be attracted by a presumptuous statement.
Hopefully; a self-directive to undertake the customary action to ward off bad luck.