they approached the guards who were preventing the crew of the carnatic from going ashore , as they neared the lieutenant of the guards he saluted smartly and allowed them to pass on a narrow gangplank which led up onto the ship .