Why my enemy changes the X axis when I asked only to change the Y axis (this variable(colliding2)).

MY ENEMY

public class EnemyV2 : MonoBehaviour
{

private Animator anim;

private Rigidbody2D rb;
public GameObject colliderUp,colliderRight;

public float speed;
public float speedUp;

public static bool colliding1, colliding2;

void Start()
{
    rb = GetComponent<Rigidbody2D>();
    anim = GetComponent<Animator>();
}


void Update()
{
    
    //rb.velocity = new Vector2(rb.velocity.x, speedUp);
    
   
   
    
    if(colliding1 == true)
    {
        
       rb.velocity = new Vector2(-speed, rb.velocity.y);
       colliderRight.transform.eulerAngles = new Vector3 (0, 0, 180);
        
       
        

    }
    else if(colliding1 == false)
    {
        
        colliderRight.transform.eulerAngles = new Vector3 (0, 0, 360);
        rb.velocity = new Vector2(speed, rb.velocity.y);
        
        

    }
    if(colliding2 == true )
    {

       colliderUp.transform.eulerAngles = new Vector3 (0, 0, 180);
       rb.velocity = new Vector2(rb.velocity.x, -speedUp);
       

        

    }
    else if(colliding2 == false )
    {
        
       speedUp = 7;
        
       colliderUp.transform.eulerAngles = new Vector3 (0, 0, 360);
       rb.velocity = new Vector2(rb.velocity.x, speedUp);

        

    }
   
   
}

}

COLLIDER1
public class collider : MonoBehaviour
{

void Start()
{

     
}


void Update()
{
    
}
 public void OnTriggerEnter2D (Collider2D col)
{
    if(col.gameObject.layer == 6 )
    {
        EnemyV2.colliding1 = true;
       

    }
    else if(col.gameObject.layer == 7 )
    {
        EnemyV2.colliding1 = false;
    }
}

}

COLLIDER2
public class ColliderV2 : MonoBehaviour
{

void Start()
{
 
     
}



 public void OnTriggerEnter2D(Collider2D col)
{
    if(col.gameObject.layer == 6 )
    {
        EnemyV2.colliding2 = true;
       

    }
    if(col.gameObject.layer == 7 )
    {
        EnemyV2.colliding2 = false;
    }
}

}

What are the values for speed and speedUp? Maybe speedUp (possibly for the speed of colliding2 obj and not acceleration) is set to a low number or zero? Or not set at all?