This is
Trapezia rufopunctata, a small and brightly coloured species of crab native to the lagoons and coastal reefs of the Maldives, Polynesia and the Indo-Pacific region. Also known as a guard crab, it lives symbiotically with corals, feeding on their discarded tissue and mucus while defending them from predators.