On critical and subcritical Sturm-Liouville operators