Is raw coconut safe to eat?
IMO, stated again, IMO...

It is an old research paper (1967) about mostly transformed (grated and dried) coconut.

A quick googling does not really give more warnings for whole coconuts (FDA or other sources).

Like all things "exotic", wash the exterior under clean water before opening and use properly clean knives and other kitchen tools.

Enjoy the coconut.