to get yourself into a bad situation that will be very difficult to get out of
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition