When we are on the verge of giving up, we have probably tried enough and feel too tired to continue.
Sometimes to achieve something, we may have to put in continuous effort. When the results take too long, we become disheartened and feel it will never happen. It is not that we can't do it; it is because we feel fatigued in that particular moment of life.
Rest and involve your mind in something you enjoy to avoid mental fatigue. Involve in creative activities, socialise, connect with nature and meditate; it will restore your strength and make you feel like continuing again.