Excel greater than 1 and less than or equal to 3 is 1, otherwise it is 0, how to express if function

Excel greater than 1 and less than or equal to 3 is 1, otherwise it is 0, how to express if function

=if(and(a1>1,a1