Approaching a topological phase transition in Majorana nanowires