Now on the question about losing up money then of course this isnt something that you could avoid or simply being inevitable because market is random
and there's no one on this world would be able to know on whats ahead.
Some people, especially newbies, think that those who are professionals or experts in the market would never fail trades because they know how to do research and both fundamental and technical analysis and if someone has that much knowledge, they can't face failure, however, that's not true.
No one becomes an expert just like that, everyone has to go through hardships and hurdles that are available everyone going in that specific path, and those who become pros or experts of a certain thing are the ones who never give up no matter how much hardships and difficulties they face along the way. That's the difference between a novice and an expert, a novice would give up very easily but a pro would stay, learn and grow, and never repeat the same mistakes again.