Older child submerges younger child under water, intentional?

If an 8-year-old intentionally submerges a 5-year-old child in the pool wearing armbands because they want to show off their ability to swim compared to the younger child, should they give the child a warning? Or do they not yet know at that age what can happen? Can it be dangerous even with armbands?