Hey Gengruiliang,
Obviously, this is a common mistake made by my students too. This is a very useful website which explains the Chinese grammar points in English. I got many of my teaching ideas there. https://resources.allsetlearning.com/chinese/grammar/
This is the summary of the differences between ‘不’ and '没'.
1. 不
* is used for negating in the present and future.
* is used to negate habitual actions
* is normally used with adjectives
* is used to ask questions
* is used almost exclusively with some verbs ( Correct: 不是、不在、不知道、不认识 ; Wrong: 没是、没在、没知道、没认识)
2. 没
* is used to negate past questions
* only 没 is used to negate 有 ( Correct: 我没有(没)钱、他没(没有)车 ; Wrong: 我不有钱、他不有车)
* is used to make comparisons
You may refer to the website for detail description.
All the best, Gengruiliang.