Legal issues of using monitoring apps

Is it legal to use a monitoring app on a phone I don’t own? What are the risks?