You have to create 2 separate loops
<?php
if( have_rows('testimonials', 49) ):
while( have_rows('testimonials', 49)) ):
the_row();
endwhile;
endif;
if( have_rows('testimonials', 51) ):
while( have_rows('testimonials', 51)) ):
the_row();
endwhile;
endif;