Fwiw, the rear legs look too flat as well. I'm not sure that it's a shore crab not sure what it is at all if you could either get a bit closer or give us a more detailed description colour etc. it would help us to figure out if it's an emerald, harmless crab or something that you'd want to return to your local marine centre.
hth
Max