A few points:
-Play right hand on top of left, not the other way around. The hand that moves more should usually be on top in passagework like this.
-Use long fingers, ideally on both hands, but especially the hand on top.
-The way the music looks on the page is deceiving. In this case, both hands should probably be played equally staccato. This makes it even easier.
-Remember that the Romantic ideal of legato did not exist in Baroque music. When we consider fingerings for this music, things are often much more "disjunct" than we'd expect, if our reference is Beethoven and later.
-This is not a terribly difficult example of hands running into each other in Bach. It's been a long time since I've played this piece on the harpsichord, so I don't remember if this passage should be on separate manuals... regardless, it's perfectly do-able on one.
Hope this helps. The long fingers and staccato for both hands should solve your problem.