As other people have said, adjusting your riding helps. I always used to look for places to trackstand without using my brakes, try to point up hill when possible and use chain tension. You can use little holes and bumps to put your front wheel against too to help, or hang your back wheel just off an edge.....it's surprising how much it helps.