The term used for the inactivation of an enzyme by incorrect heat or pH levels is denaturation.
Because the three-dimensional structure of a protein is so complex and specific to its function, even a slight change in factors including temperature, pH, and salinity may cause its shape to change, a process called denaturation.
Hope this helps!