Size ... measure ... a frame has measurements.
Top tube length* & seat tube length ..
match them?
* a horizontal virtual line if the top tube slopes.
Old Coaching book for Rome olympics used a plumbline thru BB axis
and divided up top tube fore and aft of that .
leaping off or dabbing with a foot downslope of the MTB track is not anticipated road riding is it?