Test if x is within given bounds.
x – Variable to test.
minx – Lower boundary.
maxx – Upper boundary.
exclude (str) – Exclude boundaries. Possible values are: ‘none’, ‘lower’, ‘upper’ and ‘both’
text (str) – Addiitional warning text.
Exception – If value is out of bounds.