Do not invest more than you can afford
And don't forget, trading isn't a way to rich quick
What probably OP meant is to invest money as your capital in trading, that amount is the total amount you will use in your entire trading journey, so if you loss it, your journey is over and it's necessary to invest what you can afford only so you life would not stop there when you loss.
Moving on is our escape after frustrations, so if we wanted to be successful in trading don't give up. Try other options that might be effective for your trading needs, seek more brilliant ideas from experts and combine them in order to formulate the best ideas. Use your money wisely and invest wisely, because your future depends on how you manage your finances with trading. The safest way is the best way, nothing else does but financial security is the reason why we're trading to earn profit.