Testing Math.max-min vs if statement

