The Rigidity and Gap Theorem for Liouville's Equation