They only behave because they feel it's in their best interest to do so, and that doing otherwise would be overplaying their hand. Countries are only "good" when they don't think they can get away with openly being evil. The current US administration grew up believing the domestic propaganda, and they honestly believe they're the greatest at everything, they can act unilaterally, and everyone else will just have to deal with it. That isn't completely true, and will continue to become less true as China grows their influence. But when China feels they're the dominant player, expect them to behave badly, just like the US does.