It generally inhabits both primary and secondary forests at altitudes up to about 2750 meters , but is an adaptable species and is also found in plantations, on agricultural land and around human dwellings.