Most generators today will automatically turn off if it overheats.
If they tell you not to run it underway they probably have a valid reason, there are other variables that can mess up the engine like siphoning water back into the block.