An area the player can walk over but not stand on

So i am making a top-down 2d game that is based in a city. Since it is top down you have see the side of the pavement and walk on and off the road over it. The problem is that you can stand on top of it and it makes the game feel flat when you do. Is there a way to make the player be able to walk over this, but not stand on it? The road and pavement are a tileset.
The red area is about a quarter of a tile and is the area that i want the player to walk over but not stand on.

These are the components on my playerif needed:

Below is the movement script for my player:

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
    Animator _animator;
    Rigidbody2D _rb;
    [SerializeField] float _movementSpeed = 1f;
    Vector3 movement;

    void Start()
        _rb = gameObject.transform.parent.GetComponent<Rigidbody2D>();
        _animator = gameObject.GetComponent<Animator>();
        _animator.SetFloat("Horizontal", 1);
        _animator.SetFloat("Vertical", 0);

    void Update()
        movement = new Vector3(Input.GetAxis("Horizontal") * _movementSpeed, Input.GetAxis("Vertical") * _movementSpeed * 0.5f, 0.0f);
        _rb.velocity = movement;

        if (movement.x != 0 || movement.y != 0)
            _animator.SetFloat("Horizontal", movement.x);
            _animator.SetFloat("Vertical", movement.y);
        _animator.SetFloat("Magnitude", movement.magnitude);