Please understand what this "brackish & freshwater" statement means: it doesn't mean it's equally happy in both. It means fish have been captured from both environments. Fishbase exists as a scientific resource, and isn't really designed for fishkeepers (though it does provide some useful info for commonly traded species).
Anyway, a fish like this may well spend weeks or months in freshwater. But sooner or later it will move back into the estuary, and then back into freshwater again. Or perhaps the fish itself doesn't move, but as the seasons pass the ambient salinity in one particular location goes up or down. In other words: while
Datnioides polota may well be found in freshwater if you go fishing, that doesn't mean it spends it's whole life in freshwater. Go to the Thames estuary and you'll find bream in the brackish water parts as well as flounders. Neither will breed there; the bream breed in freshwater, and the flounders in the sea. This is the "magic" of brackish water habitats -- they're not stable with fixed populations of fish that live their entire lives there. Rather, the fish found in brackish water habitats move about.
Cheers, Neale
Seems to be both Brackish & Freshwater