Если думаешь что ты мёртвый, звони врачу.

Actually this way is correct too, but then it sounds more like a general recommendation, as in "every time you think you're dead..."

Darobat, you're a...