Minimax M-estimation under Adversarial Corruption