You’ll lose rosemary faster by drowning it than anything else. Drowning and then freezing is the worst.
There is a commercial product out there called Plantskydd, it is supposed to work. I'd hope so at $35 a box. Might be cheaper than fencing . . .
I think I can get them to grow in my yard here if I could find them, Thank you for the tip