AC Milan needed two late goals to secure a 2-0 win at Cremonese in Serie A and bounce back from its second loss of the season.