validate degrees of freedom.
check_df(x, max.value)
x
expect a single number
max.value
numeric, maximal value allowed for x
integer derived from x