1
I did a mistake on the form and wrote the wrong date.
I made a mistake on the form and wrote the wrong date.
Use make, not do, with mistake: ‘make a mistake’, ‘make mistakes’.
See our grammar lesson on the difference between do and make.
2
I put my sister’s book in my bag for mistake.
I put my sister’s book in my bag by mistake.
Use by mistake when you did something but did not mean to. Do not use for mistake with this meaning.