A simple rule of thumb:
Obtain you undergraduate degree from a decent state or relatively inexpensive private, accredited non-profit institution. Just make sure that the school has a good regional reputation is a good fit for you and your goals. The point here is to get the education at a reasonable cost.
When seeking a Masters or professional degree, go to a better state university especially one recognized nationally in you area of study.
Your PhD should come from no less of a quality school as your Master degree. Ideally it should be one with that is a leader in your area of studying