The Malayan weasel is generally associated with tropical lowland forest, but has been recorded in habitats ranging from swamp and montane forests to plantations and high elevation montane scrub up to 5600 feet .