Never plug a generator into a wall outlet. Known as backfeeding, this puts lineworkers and neighbors at risk of electrocution.
In the event of a power outage, be sure to use backup generators safely. Improper use can create dangerous situations for you and others.