In a small bowl combine red onion, lime juice, olive oil, pinch of salt and pepper. Let them marinate at least 5 minutes to mellow the flavor of the onion. In a large bowl combine chopped crab meat, avocado, tomatoes, hot pepper and corn. Combine all the ingredients together, add cilantro and gently toss. Adjust lime juice, salt and pepper to taste.