"Please do not repeat the mistake" and "Please do not repeat the mistake again"
Both are grammatical; they mean different things. You use the first sentence the first time someone makes a mistake, and the second sentence when they make the exact same mistake again.