The key is to check and see how many amps it is pulling, if it doesn't pull more than the nameplate says multiplied by the SF, when maxed out, then you are okay. (If nameplate says 20 amps and SF of 1.15, don't let it pull more than 23 amps or it will burn up prematurly)
As a general rule of thumb, 5 amps per HP if you are using 220. That would make a 5HP motor 25 amps.
From experience, I had a old air compressor motor that I wanted to use on a 11gpm logsplitter. It was rated at 15 amps with a SF of 1. It had enough power to run the splitter all the way up to 3000psi and didn't stall, but it was drawing 21 amps @ max. so we didn't use it. If a 11gmp pump will draw 21 amps, i can only assume that a 22gpm will draw around 40. If you put a 5 HP electric on @ 25 amps with a SF of 1.15, it will run the pump and split the wood, but you will be pulling about 10 too many amps everytime you get into a tough peice, and the lifespan of the motor will be reduced.