A degree condition for a graph to have [ a, b ]-factors