With the comment "stop behaving like a baby" before the "pull yourself together" comment; it sounds like the person was acting immature. With that being said, when the person was told to pull themselves together they were probably the same as thinking " straighten up and act your age!"