The maximal entropy measure detects non-uniform hyperbolicity