When I change a value in my prefab using code mid-game, it change permanently

So I want to change the value of the stats of enemies of some type mid game, but when I change the value of the prefab mid game, it stays changed even when I stop the game. The new value stays on the editor…
Here is the simple code I used to change it:

public class EnemyStateChanger : MonoBehaviour
{
    [SerializeField] Enemy normalParrot;
    [SerializeField] Enemy bigParrot;
    [SerializeField] Enemy fastParrot;
    [SerializeField] Enemy fluffCannon;


    private void Update()
    {
        if (ScoreManager.getScore() > 2)
            fluffCannon.setSpawnLimit(2);
    }
}

I bet you have those referencing the prefabs assets directly. You’re code is editing the file on your disk directly, so it persists.

If you instantiate those prefabs, or have them reference an instance that’s in the scene, then you’d see them reset to their old values when your code/editor reinstantiates them as you enter/exit play mode.