You should not be investing unless you've:
- built a proper emergency fund,
- paid off all high-interest debts,
- and learnt about investing.
Without doing these things, you are just asking to go broke. If you invest money that you cannot afford to lose, then you are not investing. you are gambling. When investing, many unexpected things can and will happen. For this reason, you need to have a proper financial education so you don't make dumb decisions when these unexpected things occur.
Additionally, it is extremely important to have an emergency fund so you don't have to sell off your investments when emergencies occur.