Context: GZ parents said this whenever they were caught rudely looking at something like a car crash. It implied nosiness and rudeness.
Interpretation: The melon imagery is funny because a melon can be messy. Despite this inconvenience, the melon eating crowd happily eats their melon while not helping the person at harm. Instead, they are just watching the situation unfold. It explains the derogatory nature of the saying.