S.B.
I would get a wooden dowl that you can put down on the floor like you put in windows or sliding glass doors to keep them from being opened from the outside. You can have them cut to fit pretty snugly so that your little one can't roll them or remove them.
Dowls come in varying circumfrences and are inexpensive.
I would try that.
Best wishes.