Sounds like some jealousy issues , make sure your 2 year old is getting plenty of attention, it could also be he is aware of the affection between you and the BF and he is jealous of you guys,he will get out of it . .When he does this remove him from the room with a firm NO and sit him on a chair or stairs in a time out, if he yells thats okay , if he comes off the chair take him back, if you are consistant he will get it that he gets punished ' in this way each time he is mean.