In a pan over medium heat warm olive oil, then add onions and garlic and saute for 2-3 minutes.
In a large bowl combined crab meat, onion, garlic, lemon juice, and cream cheese.
Combine egg and water in a small bowl to make an egg wash.
Lay the wonton wrapper on a flat surface and lightly brush outside edges of wonton with egg wash.
Place a small scoop of crab mixture in the center of the wrapper and fold it over to make a triangle. Press gently on the edges to make sure they are sealed.
Fold the two corners along the longest part of the wonton together. Place a little egg wash where the points meet to seal them together.
Gently drop wontons into the hot oil and cook for 1-2 minutes or until golden brown.
Remove from oil and place on a plate with a paper towel to drain the grease from them.