Vigilance. Backup plans. Safety nets. Escape routes. Know where your support is at all times.
It sounds like a lot, but it's not really. And it becomes empowering. Your life does change, but it is for the better in so many ways. You do need to find ways to keep your attitude positive and practice positive mental exercises to keep yourself safe and growing.
You will find freedom and peace of mind if you continue, and other parts of your life may improve as well. Your ex is a bully. Their principal weapon is fear. You fight that by standing your ground which you have now done. If he tests that, rely on your support mechanisms. Keep us informed. I see so much help, wisdom, and support here.
Maybe take some self defense classes? Just something simple and basic?
Think outside the box too - you can defy his intent.
You can buy a fake camera and mount it conspicuously out of reach near your entry door?
They sell flicker lights that mimic the glow given off by televisions - I use one to divert attention to another room, or give the impression that someone is home watching TV when I am away(I actually don't even own a TV.....lol)
And no, I'm not paranoid - I've been bullied by a millionaire businessman. I've drawn my line in the sand and made it clear his bullying attempts will not defeat me. That includes a federal court order. But these things have given me not only some security and self confidence, they have given me some pleasure when I realize - they work. So, take care of yourself and never be afraid to seek help and support against a tyrant. They HAVE NO RIGHT TO MISTREAT YOU!!!
(As a side note.............I asked my support group if I can take pleasure if this horrid man meets some awful demise. To my surprise, they said yes, certainly - as long as I did not cause it. And I am comfortable with that - I don't have to be the agent of his demise (Karma will see to that) - I just have to protect myself and get on with my life. And that is happening.
There is a beautiful world out there that bullies try to keep from us - and it's a wonderful feeling to escape their grasp and stand on our own in the sunlight. You have my prayers and wishes for support.