Overlaping carpet

i just bought a 2004 ford mustang and the carpet curls down and onto my gas and brake pedals. What should i use to fix this problem correctly?

I would try some double-sided tape between the carpet and the firewall. I believe Lowes/Home Depot carries tape specifically for carpet.

Ed B.