Ett utmärkt svar har skrivits till en mycket liknande fråga av Gayot Fow, som är en erfaren invandringsadvokat i Storbritannien:
The answer to this question is indeterminate. What you want to do is legal, and there are no required intervals or cooling-off periods between visits. But on the other hand, the IO always has the option of refusing entry and having you removed. Moreover, the outcome of any interaction between a traveller and an Immigration Officer is wholly dependent on personal impact and articulation skills. You didn't give enough information about your personal impact to make a good guess (and we don't want all that information anyway). If you want you can hire an experienced practitioner (like a retired IO) to give you mock interviews.
BUT... BUT... The 'golden' solution for someone in your situation is to apply for entry clearance before travelling. Even though you do not need one, having one means your landing interview is much simpler and much more like a formality. It happens this way because a British consulate will have already checked you out and concluded that you are 'cleared' for entry.
Our laws say that an entry clearance must be respected by an Immigration Officer at a port (Paragraphs 25 and 25A). People who use them (but do not HAVE to have one) do so because it eases the transit of UK immigration controls and avoids wasted airfares and the distress of removal from port. Hence it's the 'golden' solution for anyone who is worried about what will happen in their landing interview.