You can set the '$Loop' option value to false to stop the slider from looping infinitely.
Use following code to stop the slider at slide 2,
slider.$On($JssorSlider$.$EVT_PARK, $.proxy(function(slideIndex, fromIndex) {
if(slideIndex == 1)
{
slider.$Pause();
}
}));