It's very difficult to tell the difference from the inside. Am I just bein stubborn, or do I just need to hang on? It's essentially a matter of predicting the future, and you don't have enough information.
But quit a bad idea early enough. Don't cling onto your idea when it's not the best (seeing that can be difficult if you really believe in your idea though!)