Edge traps like that are dangerous as hell. As others have said if you need to cross one, slow down and cut across at an angle (closer to perpendicular the better). If you let the bike drift too close the the vertical edge, you can't escape (you need to countersteer slightly and the edge prevents it) and tip over. Obviously it depends on the size of the edge and the size/tread pattern on your tires.