While loop condition

Sir/Maam,
The condition of while loop was while(x<=cliff_end),
then how come the print statement also printed x=11?
It should not enter the loop body when x=11?