Cop rescues boys from rip