Don’t operate your generator without a transfer switch

https://www.esfi.org/dont-shock-the-neighborhood/

Transfer switches isolate utility power and generator power to prevent backfeeding, which can be deadly. Backfeed can follow wires and harm those nearby, including utility workers making repairs. Transfer switches also protect the home from electrical fires caused by short circuits and improper connections. Transfer switches should only be installed by a qualified electrician.