A Local-Global Stability Principle for Discrete Systems and and Difference Equations