Smelling coconut milk is the best test, because if it gives off a sour odor, it's time for your milk to hit the bin. You can also check for other signs of spoilage such as if the milk has curdled, has mold, or has changed in color, and it’s always best to play it safe, so when in doubt, throw it out.