The maximim number of attempts allowed for the JEE mains exam in three hence you can take the exam a maximum number of 3 times. You can use the link below to know more about the eligiblity criteria.
Best of luck
IIT/JEE 2020 Online Preparation
Crack JEE 2020 with JEE Online Preparation Program, If you Do Not Qualify- Get 100% MONEY BACK