You can't achieve this in pivot control straight away, but you can get the pivot slide direction in selectionchange event like this,
document.getElementById("PivotID").addEventListener("selectionchanged", swipehandler);
function swipehandler(evt) {
var direction = evt.detail.direction; // 'forward' or 'backwards'
}
So in this selection change event you can check the length and index of pivot and restrict the pivot looping but if you do like this pivot would be flickering. Anyway just give a try.