The advice against trying to beat the market is based on the fact that there are tens of thousands of highly intelligent people paid to analyze securities, and they're all feeding off each other's behavior. To beat the market, you have to beat a conventional wisdom based on the accumulated expertise of a lot of people. For instance, if you want to buy stock in a Malaysian steel company, you have to decide that you understand the current value of this stock better than a crowd-sourced price generated by the research of a horde of steel industry specialists, people with intimate knowledge of the Malaysian economy, business environment, and political environment, people who can afford to spend all day reading forecasts of economic conditions in the countries where this company's steel is consumed, and people who have a drink with a VP from the company and get gossip about the CEO's health and the competence of his likely successor.
If no one was trying to beat the market, it would be easy to beat the market. But since so many people are busy trying, it's silly to try to compete unless you want to take it as seriously as the professionals do and get plugged in the way they are.
The "random walk" hypothesis says you can beat the professionals. About half the time. By flipping a coin. But the professionals are insiders, and as well-regulated as the stock market is, I would assume that an outsider playing against insiders in a 50/50 game will not quite win his full 50% share.
The hope that a person can price stocks better than the market as a whole rests on a couple of possibilities:
1. Beating full-time professional analysts at analysis in your spare time, because you're just so bad-ass.
2. Identifying a price that is heavily influenced by ignorant people and beating them by just being reasonably well-informed -- but this is not an original idea and hence is a special case of #1.
3. Finding a niche that you know intimately for some reason, and in which you have no professional competition. Oh, wait, this is just #2 again. Or maybe you found a niche small enough that it doesn't get a lot of attention from professional analysts, and you can make a little bit of money at it. That might work!
4. Being the first one to take into account a new idea or source of information. This one will make you wildly rich, and it's fun to dream, but while you're looking for that brilliant idea, there's no reason to risk real money on your ideas-in-progress.