Upvote:4
Please follow the advice given by the officer, religiously . It is the best possible advice.
You should reapply only after your circumstances have changed considerably and after a long time. 5 refusals back to back are really really a big deal.
Stop trying for now. If you can afford it, reapply only with the help of an immigration specialist.