Adds min/max check against passed param.  defaults to closest bound if out of range