I'm probably wrong, but shouldn't you feather the edges of the paint before you apply the primer..? It just appears that you'll be hard pushed to get that ridge edge down.
I did with some sandpaper and then made my mask about 1mm larger than the area all around