Function to check that a value x is between two values
x
inbounds(x, low_bound, up_bound)
The value to check.
low_bound
The lower bound.
up_bound
The upper bound.