To prevent curdling, avoid boiling the coconut milk. Keep the heat low and simmer gently.