Freeness versus maximal degree of the singular subscheme for surfaces in $P^3$