self-defeating

adj

1.
acting to defeat its own purpose