1990 Nissan d21 pick up stalls while driving and slowing to a stop runs fine at idle?

Fuel pump is going bad or the fuel filter is plugged near solid.