I want to create an API that will pass price ranges like price filter I will pass category id to API function on the base of category id product collection will load now my code able to check max and min price of product how I set price ranges in code?