Critical Josephson current in BCS-BEC–crossover superfluids