There's nothing wrong with giving up on something that's obviously unsolvable.
But sometimes you need to be objective and understand the difference between unsolvable and unlucky.
Luck, or lack thereof, is not guaranteed. Things might be really hard one day, definitely going to be hard tomorrow...