You are never ever told to pray to Mary. She is singled out by Jesus Christ as being the same as any believer, nothing more, nothing less.
If you are praying to Mary at your death, you can best believe that the next thing you see will be Satan in Hell.
Mary does not save, she does not offer salvation and she can not hear you nor help you.
1 Timothy 2:4 Who will have all men to be saved, and to come unto the knowledge of the truth.
5 For there is one God, and one mediator between God and men, the man Christ Jesus;
6 Who gave himself a ransom for all, to be testified in due time.
1 Timothy 2:4-6 in no way contradicts veneration of Mary. It describes Christ, and I agree with the description. He is the only mediator between god and men and it is through His sacrifice Mary and the rest of us Christians are saved.