Gray hat SEO is nothing but working together with White hat and Black hat SEO.That means By following the Rules of white hat and black hat SEO.