Edwin Ashworth mentioned that one example was a form of -encouragement- in comments
... I think it has broad enough meaning to apply to any words that are meant to improve another person's outlook
google definition of encourage
en·cour·age - verb
- give support, confidence, or hope to (someone).
"we were encouraged by the success of this venture"
synonyms: hearten, cheer, buoy up, uplift, inspire, motivate, spur on, stir, stir up, fire up, stimulate, invigorate, vitalize, revitalize, embolden, fortify, rally; More
- give support and advice to (someone) so that they will do or continue to do something.
"pupils are encouraged to be creative"
synonyms: persuade, coax, urge, press, push, pressure, pressurize, prod, goad, egg on, prompt, influence, sway; informalput ideas into one's head
"she had encouraged him to go"
- help or stimulate (an activity, state, or view) to develop.
"the intention is to encourage new writing talent"
synonyms: support, back, champion, promote, further, foster, nurture, cultivate, strengthen, stimulate; More
Best Answer
You want them to learn something the hard way.
It means to learn something by an unpleasant experience.