The original habitats of the raccoon are deciduous and mixed forests , but due to their adaptability they have extended their range to mountainous areas, coastal marshes , and urban areas , where some homeowners consider them to be pests .