The ability of a protein to retain its structural conformation or its activity when subjected to physical or chemical manipulations.