Where exactly have you been.. reading all of these horror stories people have with UK customs and being sent home
Plenty of such stories on LP.
You are doing nothing wrong you are visiting your boyfriend for a month you have accommodation and you have a return ticket if asked just tell the truth.
I think you do have to be careful what you say. The problem is that people get denied entry not on the basis of the truth but on the basis of suspicion. Thus it is best to reveal the truth in a way that does not lead to suspicion of the things that worry them. Thus the philosophy is more one of telling them what they need to know. If OP had just finished her university course, or left a job, and was coming for 6 months, and didn't have much money, she would have reasonable basis for worry she might be denied entry, even if the truth was she was not coming here to live, work, get married, etc. Thus, while not telling any lies, which would of course be illegal and could result in severe problems, it is best not to guide the officer in the direction of the kinds of suspicion they might have to deny entry. But in the particular case of OP, this is rather unlikely. Visiting friends is a common and normal reason for travel.