Hello Bana,
They both mean "bad" but both words could be used in different contexts with different meanings .I will try to show you the differences with examples:
Male:
- badly in an unsatisfactory way :
comportarsi male ( to behave badly)
oggi ho giocato male (I played badly today)
-in a wrong or incorrect way:
pronunciare male una parola (to pronounce a word wrongly.)
rispondere male ( to answer wrongly)
- in a rude, impolite manner :
trattar male qn ( to ill-treat somebody.)
- 'male' in the sense of 'evil'
il bene e il male (good and evil)
il minore dei due mali ( the lesser of two evils)
- in the sense of 'harm'
che c'è di male? (what is the harm in that?)
non farebbe male a una mosca (he wouldn't hurt a fly )
- in the sense of 'hurt, pain ,ache'
mi fa male una gamba (my leg hurts)
i mali della vecchiaia (the infirmities of old age)
avere mal di testa/di stomaco (to have headache/stomachache)
Cattivo:
- bad ,wicked,naughty
un bambino cattivo (a naughty boy)
farsi un cattivo nome (to earn a bad reputation)
-villain
fa sempre la parte del cattivo ( he always plays the villain)
- di cattivo gusto ( tasteless)
- cattivo odore ( pong 'stench')
- fare un cattivo uso di qualcosa (misuse something)
-di cattivo carattere ( ill-natured)
With the previous examples you get an idea when and how to use both words in their correct context .:)