Select the best substitute for the part in square brackets. If none of them improves the sentence, choose 'No improvement'.
You are warned [against committing] the same mistake again.
Explanation
'Warn someone against doing something' is the correct pattern, so no improvement is needed. ('Warned not to commit' would also be fine, but 'warned to commit' changes the meaning.)