Crack dealer jailed after car stopped by off-duty police officer