Sets the bounds to the min and max value of the box.
min
max
Using this function is faster than assigning min and max separately.