If Cecil, Dark Knight is dealt lethal damage at the same time it deals damage (probably because it blocked or became blocked), its last ability will still trigger. You'll still lose life, but you won't untap or transform Cecil, Dark Knight because it won't be on the battlefield anymore.