precarious

(adj) characterized by a lack of security or stability that threatens with danger   
The upset man was precariously close to the edge of the bridge; drivers-by thought he might jump.