Control the scale up and down

I increase or decrease the size of the object.
I want to understand whether it is constantly growing or shrinking during the update.

What kind of condition should I create ?

 if()
        {
            Debug.Log("decreasing");
        }
        else
        {
            Debug.Log("increasing");
        }

float scaleX, scaleY, scaleZ;

void Update()
{
   if(scaleX > transform.scale.x)
   {
      Debug.Log("Increasing X");
   }
   else if (scaleX < transform.scale.x)
   {
       Debug.Log("Decreasing X");
   }
   if(scaleY > transform.scale.y)
   {
      Debug.Log("Increasing Y");
   }
   else if (scaleY < transform.scale.y)
   {
       Debug.Log("Decreasing Y");
   }
   if(scaleZ > transform.scale.z)
   {
      Debug.Log("Increasing Z");
   }
   else if (scaleZ < transform.scale.z)
   {
       Debug.Log("Decreasing Z");
   }

   scaleX = transform.scale.x;
   scaleY = transform.scale.y;
   scaleZ = transform.scale.z;
}