This all depends, what type of generator? There is a big difference between my relatively recent Kohler 6EOD based upon a Perkins 400 series and the 1970s era Kohler based upon a Perkins 4.107 that was in my prior boat. or one of the old Northern Lights that are common.
The 6EOD can me lifted with a come-along or, if really needed, some rachet straps. The older generator? That would have taken an A-Frame, which is what we used when we swapped one of my engines.
For some gensets, and bilge arrangements you could use a hydraulic spreader to rock it back a bit, block (shim) under that side, go to the other side and do the same, and work back-and-forth until it is blocked high enough. Heck, for some an automotive floor jack might work.
--
https://www.harborfreight.com/4-ton-portable-hydraulic-equipment-kit-62115.html
--
https://www.amazon.com/Torin-Big-Red-Portable-Hydraulic/dp/B000OQ3Y62
It all depends upon how heavy the genset is, how much space you have above, how much space you have below, and how much accessibility you have.
With some small generators and some installations, one side might be high enough and only one side might need to be lifted (there are limits to this, obviously).
I guess I can say that I've seen or been involved in projects with some similarity done with A-frames, hydraulic spreaders and blocking, come-alongs, and rachet straps.
Of course there are dangers...rachet straps breaking, a jack or blocking sliding, the unit becoming unstable and moving when tilted, a finger or foot or other body part getting crushed beneath or between things, etc, etc, etc. It is all situation dependent and improvised, so you've got to feel good about the plan and find a way to stop, stabilize and replan to go forward or backward if ever you lose that comfort. Etc. Etc. Etc.