It is not SUPPOSED to be possible.
It is true that if your generator output gets hooked to the mains, you generator will be toast. But there is supposed to be either a cutover switch or a need to unplug the rig from the mains in order to plug it into the generator so that that is not possible for even an idiot to arrange.
That said, all kinds of things happen because somebody did something stupid, if you get my drift. It's a little like firearms: until you have personally checked to make sure there is NO ammunition in the chamber, or the magazine, you need to treat every gun as if loaded and ready to fire. In this case, unless you have personally checked the wiring and switches, every electrical setup should be assumed to be arranged by an idiot and ready to explode in a shower of sparks. Just my tip for safe running.
You never know when the rig manufacturer will have put the new kid on the job, and HE wired up a death trap. So depends on how rich you'd like to make your heir's lawyers.