[jQuery] Select next element but not gt(3) or lt(2)

[jQuery] Select next element but not gt(3) or lt(2)


When clicking a link I want this:
$
(this).parents('div').next().addClass('last').siblings().removeClass('last');
That works but I only want to add a class last when the next div is
gt(3) or lt(2) but that doesn't work when I do this:
$
(this).parents('div').next('div).gt(3).lt(2).addClass('last').siblings().removeClass('last');
I also tried some other things but I still doesn't work. Is it
possible anyway?