This quotes sounds to me like a sound advice for both the writer and the character. As writers, we are in a business that rejects us. All the time. One of the big differences between a published writer and a non-published one is perseverance. Quality of the writing comes afterward.
For characters, well, their destiny is to walk the path of the most resistance. If they give up, there is no story.