It is behaving like a child It's going to cry at night when you wake up at night and did not sleep
It has a child-like behaviour, because it would be crying in the middle of the night and did not sleep when I wake up in the middle of the night
It is behavior like a child because it would be in the middle of the night crying and refusing to sleep when you wake up in the middle of the night