#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    if (((a + b) * n < c - d) || ((a - b) * n > c + d)) {
      cout << "No\n";
    } else
      cout << "Yes\n";
  }
  return 0;
}
