Risks and rewards: balancing costs and benefits of predator avoidance in a fiddler crab