Allegri: 'Milan can't risk like that'