
Make a rod for your own back
Future Consequences
Use when an action will cause future difficulties, often due to a lack of foresight. 
Idiomatic Caution
It suggests a warning about the results of one's actions, typically used to advise someone. 
Avoidable Trouble
It implies the trouble is self-inflicted and could be avoided with different actions. 