with their long spears and tight formation , the guards would push the legionnaires back into the dungeons , trap them in a corner , and cut them to ribbons without the legionnaires ever getting close enough to strike .