I have my own house(my name only) nothing shared to ex wife.(divorced 3 years ago)

however, I felt pity and brought the exwife and 2 of my kids into the house.

suddenly out of blue. after work. police show up and they say, there is judgement against you.

you must gather your belongings and do not enter my own house or within 500 metres.

I also can't not communicate or contact my kids. this order says.

what do I do?

how do I get my own house back?

we lived here for 3months. I made her sign co habitant agreement and also rental agreement just to protect myself before they moved in.

I will call the lawyer tomorrow because this just happend and it's already 11:17pm.

there was zero violence or anything like that in the past 6 or whatever months.

past 2 years there was a call or two she made to the police saying that I did some thing that I threatened her (yelling)

can she use that against me and get full custody of my kids?

I know so many questions but this just hit behind my back after work. so I'm so lost