I have short legs and a long body, and so I ride a frame one size smaller than one would expect for my height.
I make up for the smallness with a setback seatpost.
Anyway, you have to stand over the bike.
The largest frame over which you can comfortably stand, or the next smaller frame should do it.
The real fit comes from seat post, saddle, steerer tube height (if threadless), stem and handlebars.