正确的写法:
if (realValue >= 0 && realValue <= 5) { console.log('正确写法'); }
错误的写法:
if (0 <= realValue <= 5) { console.log('错误写法'); }