Detecting a click on the border is not possible in SVG, the target of the event is the whole element. However, you could detect that by knowing the stroke-width of the rectangle and the x, y coordinates of the click. You know the position of the rectangle and so this should be enough to decide whether it was the border that was clicked or not.
paper.on('cell:pointerdown', function(cellView, evt, x, y) {
var bbox = cellView.getBBox();
var strokeWidth = cellView.model.attr('rect/stroke-width') || 1;
console.log(isBorderClicked(bbox, x, y, strokeWidth))
});
where the isBorderClicked()
function detects whether it was the border that was clicked based on the above mentioned arguments.