Crabs should not be kept with anything because they are predators and will attack fish, shrimp and each other.
DO NOT add a fish to a tank containing crabs.
If you have an algae problem in the crab tank, either add live plants (crabs will probably eat them too) or reduce the light.