Ionic 3 Range

hello every one i need to update the value of the ion range . As there is condition in my code if the value increase form the given value it should decrease the value of the range please its urgent to implement in the code .