First cut and clean (cut off the crab nails) the crab with water, just rinse it. Spread some salt, red chilli powder (2 tsp), turmeric powder (1/2 tsp), ginger-garlic paste (1 tsp) and keep it aside for 15 mins.
Take a deep pan and heat oil in it, once it's hot add the chopped onions, fennel seeds, cloves and fry well in a medium heat.
The onion should be fried well till it turns to brown in colour.
Now add ginger and garlic paste to it and fry for another 3 mins, till you get the smell of ginger and garlic.
Now add red chilli powder to this and fry for a min.
If you want it hot add some tsp of red chilli powder, generally for crab dish mild hot will do good.
Now add the crab to this above mixture and fry for 5 mins in a medium flame.
Add the garam masala too.
Pour 4 glasses of water into it, taste a little bit and add salt as required to your taste and cover the pan with the lid.
Wait till it turns to thick gravy, that is crab should be well coated with the gravy.
Garnish the crab fry with chopped coriander.
Now your crab fry is ready.
Crab fry goes well with white rice, biryani, pulav, lemon rice, coconut rice.