Limit val between an inclusive min and max