The easiest way is to simply lower the water level a inch or two from the top and attach some type of shelf to the side of the tank so the crab can get on it. Crabs are pretty good at getting up to the top of the tank via plants and air lines.
There are other more creative ways to do this also, but this is the simplest. If you are interested in being more creative. post that and I will post other ways.