You'll be in for trouble.

Literal

Troublesome thing-[to-に-なる] [emphatic-よ].

面倒なことになる is literally 'it will become a troublesome thing' — a set warning frame using ことになる for 'things will end up as X.' The topic of what will become troublesome is left entirely implicit. A stock phrase of admonishment or foreboding.