When walking onto a path block or farmland block, the block will push you off onto lower ground if there is an air space next to the path or farmland, and if there is not another block blocking you from falling off. Jumping up onto the path block from lower ground will let you onto the edge of the path block if you keep walking forward into it, but will still push you off if you let go of the forward key.
Related issues
Comments

Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-188987, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord