It's tough when your competition can give away their product and fund it through their bottomless pockets and money they make on other products.
I used to work for a great company in the developer tooling area, one of the big players came directly after us, ramped up a team, started copying our features and gave the product away for free. We were still doing well when I left, but it'll be interesting to see how it goes over the next few years.