Distinct doping dependence of critical temperature and critical current density in Ba1−xKxFe2As2 superconductor