It's neither, actually.
The effect devolves the Pokemon to a lower stage.
That's all that the attack does.
Now, after that is done, the HP of the Pokemon is checked and it's less than the number of damage counters on it.
So it is KO'd.
It's not even a KO from the attack.
Rescue is not triggered.