Whosoever, being armed with an offensive weapon, or instrument, or being in company with another person, robs, or assaults with intent to rob, any person, and immediately before, or at the time of, or immediately after, such robbery, or assault, wounds, or inflicts grievous bodily harm upon, such person, shall be liable to imprisonment for 25 years.