Relocate or recycle the crab as you see fit.
When you want to put a trap in place to catch a ghost crab remember that it will only be successful if there is a crab in the hole. A good indication of this is when the sand around the hole is damp and darker in color. It's pointless to put a trap over a hole that is surrounded by dry sand.
The crab won't enter the trap until he needs to leave his hole. That happens at night when he needs to go to the sea. That's why you must check the trap the next morning to see if it has been successful.
Ghost crabs are good climbers but they can't go straight up. Place the trap in the tunnel following the angle of the tunnel. The tunnel never goes straight down.
These crabs aren't too bright but they aren't stoopid either. If you don't firmly imbed the center tube in the hole and build the sand up around the trap then the crab will simply push it out of the way when exiting the hole.