You should prepare for the test at least 2 months before the exam date. Practice tests are fine but I would advise you enroll in an IELTS review center. They give a lot of tips on how to correctly answer the test questions that you won't know if you'll review by yourself.
I reviewed in such a center for about an month and I got an overall band score of 8.0