When initial motivation to complete a task dissipates, and the feeling of quitting sets in, resist.
It’s normal for things to get difficult particularly if it’s a worthy goal.
No one becomes a success at anything without pain or paying a price. So plough through.