Restrict swiping to one direction - ion slidebox

I want to restrict swiping of slides in an ionic slidebox from left to right only.

For example, I have 4 slides, user can swipe right to change slides, but once the user gets to slide no. 04, and he swipes to right, then slide no. 01 comes again. How can I restrict this?