The crab-eating mongoose occurs in northeastern
India, northern
Myanmar,
Thailand,
Peninsular Malaysia,
Laos,
Cambodia, and
Vietnam. It is rare in
Bangladesh. It has been recorded at altitudes from sea level to . In India, it was recorded in
Assam,
Arunachal Pradesh and
Uttarakhand. In Bangladesh, it was recorded in the eastern forested hills in
Sylhet and
Chittagong areas. In China's
Guangxi,
Guangdong and
Hainan provinces, it was recorded in subtropical
limestone forest during interview and camera-trapping surveys carried out between 1997 and 2005. ==Ecology and behaviour==