Sign one’s own death warrant

To do something knowingly that will probably result in severe trouble.

Our secretary signed her own death warrant when she came to work late three times last week.