Sounds like you want to clip the raster so that no values exceed 5.
Hit the 'New' input button and choose the raster you want to process. The default name will be "Input_1". I usually change these to A, B etc by clicking on the name in the list. Then, from the functions list, choose the "min" function.
All you need is this expression (where A is the name of the input)-
min(A,5)
Hit the Compute button and you have your new raster.
You can also do this using a virtual raster in which case the processing all occurs on the fly. If you have a very large input raster this can save you a big processing operation.
------------------------------
Sam Roberts
Engineer, MapInfo Pro Advanced (Raster)
Australia
------------------------------