at room temperature, the proteins float around by themselves. but adding an acid like lemon juice, or increasing the temperature, damages or 'denatures' the specific structure, exposing charged parts of the molecule. charged proteins are attracted to each other in the milk and form clumps, resulting in lumpy custard.