Great call, Yoda. With those predictive skills, you must have spent many a long, hard day at the race track.
But even this comes after Luke's training, which largely consisted of slogans like:
"Do, or do not. There is no try."
Nonsensical lines like that one make Yoda the Yogi Berra of the galaxy. He seems to have picked up an incorrect definition of the word "try" at whatever community college he attended. You cannot do without trying first. It is impossible. If he'd said "get drunk, or do not, there is no drinking" it would have made as much sense.
"WOOOOO! Pride or no pride, I will get drunk."
Or was he just telling Luke to believe in himself, to plunge ahead against all odds, regardless of appearances? After all, Yoda said the line after Luke expressed doubt in his abilities. Well, we're all for self-confidence, but Luke's whole problem was that he overestimated his own abilities, and was charging into the situation without stopping to train first. The entire rest of Luke's training revolved around breaking him of that.