If the target permanent you control is an illegal target by the time Blim's ability tries to resolve, the ability doesn't resolve. The other player doesn't gain control of your permanent, and no one loses life or discards cards.