Ghariyal and crocodile are reptiles. They can swim in water and crawl on land. But they can respire only with the help of lungs. Their breathing is through nostrils. Even when in water, they have to inhale and exhale by coming up to the surface of water for air. Amphibians can breathe through the skin when in water and by lungs when on land. They also have hard exoskeleton which amphibians do not have.
Hence, ghariyal and crocodile are not amphibians, but they are reptiles.