How to make enemies take wider routes?

I’m currently using A* pathfinding to mainly control my enemy’s movement, however, I’m having a problem with it being constantly in contact with the collider, and it struggling to get around the corners. I would make the margins wider, but the problem there is that its destination is next to the collider, so that’s not an option.
The yellow boxes in the image are the potential destinations. Any advice or ideas? Thanks in advance!

I suggest that you change the A* algorithm to not allow diagonal movement if there is an object adjacent to the enemy. This image demonstrates what I’m talking about:
alt text
If you’re wondering how exactly you might implement that in code then I’d like to see the code you used for the algorithm.