Can’t create a table check constraint

Look what I tried but gives error:

Error Code: 3818. Check constraint ‘teste_chk_1’ cannot refer to an auto-increment column.

create table teste( id int auto_increment check(id >= 0 and id<3), nome varchar(10) not null, primary key(id) );