Is it possible for the mangrove plants to live in other habitats, or in freshwater?

No, sometimes they may survive, but they do not appear to be successful in any other habitats other than mangrove habitats – between the high- and low-tide levels.