if the temperature of milk increases and then rapidly decreases bacteria can start to form in it. also if milk gets to warm it can spoil and curdle towards the bottom of the cup. the curdling is usually due to the lactose in milk.