ADXL355 accelemomter , multiple if statements , boolean .All doesnt work

Hey everybody,
so recently i have been working on a project that tells you where is the acclemometter position using its x,y and z readins , but i have a problem it seams that the arduino just skips the if commands and serial prints automatically (and no the values is not the same as in the boolean and if commands when the serial.print command engages).
it just spams the serial monitor with the serial.print command that should be done after checking for the values in the if statement but i guess it doesnt check.

const int xpin = A3;                  
const int ypin = A2;                  
const int zpin = A1;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int x = analogRead(xpin);
  int y = analogRead(ypin);
  int z = analogRead(zpin);
  
  if (x<370||x>335 ){
    if (y<330||y>320){
      if (z<411||z>404){
    Serial.print("position: middle");
  }
    }
  }
}

also i have tried this

const int xpin = A3;                  
const int ypin = A2;                  
const int zpin = A1;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int x = analogRead(xpin);
  int y = analogRead(ypin);
  int z = analogRead(zpin);
  
  if (x<480||x>350 && y<340||y>310 && z<410||z>380) {
    Serial.print("position: middle");
  }
}

Use print statements to see what values you are using with these if statements.

x<370 || x>335
So for what value for x would this not be true?
I ask the same question for the other two if statements as well.

it means that if the value of "x" is between those 2 values (335,370) the statement would be true and the same for all. (370>x>335)

For example : if x = 360 its true otherwise if x = 380 its false

if x = 360 its true otherwise if x = 380 its false

No.

x<370 || x>335

If x is less than 370 OR x is greater than 335 then the statement is true.
There is no value of x that will produce a false value.

If x is 380 then it is greater than 335 and so the statement is true.

Hence what you see is exactly what you have coded.

Test your conditions here:

int x = 0;

void setup() {
  Serial.begin(115200);
}

void loop() {
  /* test your conditions here, prints x values that evaluate TRUE */
  if ((x > 335) && (x < 370)) {
    Serial.print(x);
    Serial.println (" TRUE");
  }
  x += 1;
  if (x > 1023) {
    Serial.print("Done");
    while (1) {};
  }
}