You shouldn't eat coconut if you have high cholesterol, are undergoing surgery, or have a coconut allergy. Additionally, consuming coconuts might cause adverse reactions in some individuals.
High Cholesterol
Whole coconuts contain coconut oil, which is high in saturated fat. This should be considered if you're managing high cholesterol levels. (Reference: Whole coconut contains coconut oil, which is made up of saturated fat. But coconut flour is processed to remove fats. Use whole coconut cautiously if you have high cholesterol.)
Surgery
Coconut might interfere with blood glucose control during and after surgery. It's best to consult your doctor before consuming coconut around surgical procedures. (Reference: Surgery: Coconut might interfere with blood glucose control during and after surgery.)
Allergies
Some people experience allergic reactions to coconuts, manifesting as skin rashes or other symptoms. If you have a known coconut allergy, avoid all coconut products. (Reference: In some people, eating coconuts might cause an allergic reaction. Symptoms might include skin rashes…) Note that even a processed form like coconut milk may still cause an allergic reaction for some individuals. (Reference: On my allergy test, it says I'm allergic to coconut but not coconut milk ... Whenever I eat coconut or something that contains coconut I get an itchy feeling inside my throat and ears. Can that be a sign of an allergic reaction?)
Other Considerations
While coconut is generally safe for consumption, moderation is key. The high saturated fat content should be considered as part of a balanced diet. (Reference: ...not eat enough coconut for the saturated fat in it to have an impact.)