It consistently does it, and it also does it near holes filled with water as well.
Related issues
Comments


Experiencing this as well, Java edition 1.16-pre5.
This happen when moving onto either farmland or road blocks (both of which are 15/16 tall) and any adjacent block is open space. It does not appear to happen if the farmland or road block is entirely surrounded by full-height blocks or by other blocks that are 15/16 tall.

I have the same issue. My farm is surrounded my water other than a one-block connection on each end. As soon as I try to walk on, I get pushed to the edge and into the water. If I jump onto the farm, I'm able to get onto the middle of the farm, but as soon as I start to walk on the farm, I get pushed out to the edge again. I use this farm frequently, including through pre-release 3, so it appears to be a new issue in pre-release 5.
→ MC-188987